Boost your Swift skills by adding higher-order functions to your coding. Explore the concepts behind higher-order functions like map and filter so you know when to apply each one.
Overview
Syllabus
Introduction
- Understanding higher-order functions
- What you should know
- What are closures?
- Functions are closures
- Closures and function types
- Passing closures/functions as parameters
- Type aliases for types
- Higher-order functions
- Sort
- Sorted
- Foreach
- Map
- Filter
- CompactMap
- FlatMap
- Reduce
- Other higher-order functions
- Passing functions
- Closure optimizations
- Chaining higher-order functions
- Higher-order functions on sets
- Higher-order functions on dictionaries
- Higher-order functions on strings
- Next steps
Taught by
Bear Cahill