Learning Higher-Order Functions with Swift

Learning Higher-Order Functions with Swift
Learning Higher-Order Functions with Swift

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 06m | 138 MB
eLearning | Skill level: Advanced


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.

Topics include:

  • 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
+ Table of Contents

1 Understanding higher-order functions
2 What you should know
3 What are closures
4 Functions are closures
5 Closures and function types
6 Passing closures functions as parameters
7 Type aliases for types
8 Higher-order functions
9 Sort
10 Sorted
11 Foreach
12 Map
13 Filter
14 CompactMap
15 FlatMap
16 Reduce
17 Other 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
24 Next steps