0

Type of selectBoxItems is [String : [String : SelectBoxTextField]]

I want to map selectBoxItems to get the result as [SelectBoxTextField]

How can I do it?

1
  • 1
    selectBoxItems.values.flatMap { $0.values }? Commented May 30, 2022 at 10:07

1 Answer 1

2
selectBoxItems.values.flatMap(\.values)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.