Swift Advanced functions

suggest change

Versions

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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents