buildArray(_:)
Supports menu content produced by a loop.