Swift Advanced functions
suggest changeVersions
Introduction
Advanced functions such as map, flatMap, filter, and reduce operate on collections such as Array and Dictionary. They are short and can be chained. The flatMap that drops nil was renamed compactMap in Swift 4.1. Flattening flatMap kept its name.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents