Learning Higher-Order Functions with Swift
1h 7mAdvanced2018-11-29
Authors

Bear Cahill
Mobile Application Developer
Course details
By taking the time to truly grasp higher-order functions, you'll go from merely understanding the Swift language to mastering it. In this course, Bear Cahill shines a spotlight on higher-order functions in Swift, exploring what they are and how to use them. Bear starts by discussing the importance of higher-order functions and the basics of closures and functions as a basis for the rest of the course. He then covers a variety of higher-order functions—including sort, reduce, and compactMap—with a breakdown of the concepts behind each one (so you know when best to apply them). Learn about passing functions, closure optimizations, higher-order functions on strings, and more.
Learning objectives
What are closures?
Closures and function types
Basic higher-order functions, including sort and forEach
Powerful higher-order functions, including map and reduce
Passing functions
Closure optimizations
Higher-order functions on sets, dictionaries, and strings
Learning objectives
What are closures?
Closures and function types
Basic higher-order functions, including sort and forEach
Powerful higher-order functions, including map and reduce
Passing functions
Closure optimizations
Higher-order functions on sets, dictionaries, and strings
Skills covered
SwiftCross-Platform DevelopmentiOSMobile DevelopmentAppleLearning
Concepts
0. Introduction
- 01 - Understanding higher-order functions
- 02 - What you should know
1. Closures and Functions
- 03 - What are closures
- 04 - Functions are closures
- 05 - Closures and function types
- 06 - Passing closures functions as parameters
- 07 - Type aliases for types
2. Basic Higher-Order Functions
- 08 - Higher-order functions
- 09 - Sort
- 10 - Sorted
- 11 - Foreach
3. Powerful Higher-Order Functions
- 12 - Map
- 13 - Filter
- 14 - CompactMap
- 15 - FlatMap
- 16 - Reduce
- 17 - Other higher-order functions
4. Using Higher Order Functions
- 18 - Passing functions
- 19 - Closure optimizations
- 20 - Chaining higher-order functions
- 21 - Higher-order functions on sets
- 22 - Higher-order functions on dictionaries
- 23 - Higher-order functions on strings
Conclusion
- 24 - Next steps
Related courses
- Learning Functional Programming with JavaScript ES6+ (2019)
- Learning Functional Programming with JavaScript (ES5)
- Complete Guide to Differential Equations Foundations for Data Science
- Build Your Generative AI Plan for Marketing Success
- React: Design Patterns
- React: Using TypeScript (2019)
- Tips to Boost Your Analytical Thinking
- Agile Software Development: Extreme Programming
Related learn paths
- Getting Started with C++
- Improve Your JavaScript Language Skills
- Become a Programmer: Foundations
- Human-Centered Leadership for Senior Managers and Senior Leaders
- Prepare for the PMI-ACP Certification
- Develop Your Skills in Agile Software Development
- Getting Started in Finance and Accounting
- Getting Started as an Agile Project Manager