Back to Browse

map, compactMap flatMap

7.9K views
May 3, 2020
17:06

This is the first in a series of videos where I look at higher order functions in Swift. In this video we look at map, compactMap and flatMap and how you can apply them to collections to be more concise and improve your code. Starter Playground: http://www.createchsol.com/StarterProjects/Map_compactMap_flatMap.playground.zip Videos in this series Part 1: map, compactMap, flatMap: https://youtu.be/sdGwOPW0ko4 Part 2: reduce, filter, removeAll: https://youtu.be/9wAhKodOyFI Part 3: contains, forEach, sorted, https://youtu.be/TnbAABxVq5w Stewart Lynch's YouTube Channel https://youtube.com/StewartLynch CreaTECH Solutions Website https://www.createchsol.com Stewart Lynch's GitHub https://github.com/StewartLynch

Download

1 formats

Video Formats

360pmp426.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

map, compactMap flatMap | NatokHD