buildArray(_:)
Supports menus produced by a loop.