Closed wneumann closed 4 years ago
Considering merging this and reduce into map (and renaming map, natch), especially if compactMap
gets moved to filter. The concepts are all related, so I am trying to come up with the best arrangement that doesn't overload the student but also that doesn't make the exercise too thin.
Merging this exercise with map
, closing this issue.
This issue describes how to implement the flatMap concept exercise for the Swift track.
Getting started
Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read the following documents:
Please also watch the following video:
Goal
This concept exercise should convey a basic understanding of how to flatMap in Swift.
Things to teach
flatMap
?Things not to teach
compactMap
Concepts
flatMap
Prerequisites
functions
higher-order-functions
closures
loops
map
Resources to refer to
Hints
After
Representer
TBD
Analyzer
TBD
Implementing
See the Swift track implementation guide for guidance.
Help
If you have any questions while implementing the exercise, please post the questions as comments in this issue.