Problem Statement
Which of these describes what `map` does in Swift?
Explanation
The `map` function applies a transformation closure to each element of a collection (e.g., array) and returns a new collection containing the results. This is a classic functional-pattern in Swift.
Practice Sets
This question appears in the following practice sets: