Type of selectBoxItems
is [String : [String : SelectBoxTextField]]
I want to map selectBoxItems
to get the result as [SelectBoxTextField]
How can I do it?
CodePudding user response:
selectBoxItems.values.flatMap(\.values)
Type of selectBoxItems
is [String : [String : SelectBoxTextField]]
I want to map selectBoxItems
to get the result as [SelectBoxTextField]
How can I do it?
CodePudding user response:
selectBoxItems.values.flatMap(\.values)