Functional Programming in Swift

PT20502
Training Summary
This course will encourage you to look at functions and types differently. You can opt for the one day or two day course. Day one focuses on higher-order functions and some of the principles of functional programming. We will create functions that return and accept other functions and then explore examples of higher-order functions in the Swift Standard Library's Arrays including filter(), sorted(), reduce(), map(), compactMap(), flatMap(), and zip(). The second day focuses on map() and flatMap() as design patterns. You'll see examples of functors and monads beginning with Arrays, Optionals, and Result, and moving on to Writer, Reader, and State. We assume that you are an experienced programmer who has spent some time looking at Swift but you are relatively new to Functional Programming
Prerequisites
We assume that you are an experienced programmer who has spent some time looking at Swift but you are relatively new to Functional Programming.
Duration
1 Day/Lecture & Lab
Audience
This course is for experienced Swift developers who want to explore Functional Programming.
Course Topics
  • Immutability and Functions
  • Higher-Order Functions in Arrays
  • Map (Functors)
  • FlatMap (Monads)

Related Scheduled Courses