This directory contains code from Point-Free Episode: The Many Faces of Flat-Map: Part 2
Now that we know that
flatMap
is important for flattening nested arrays and optionals, we should feel empowered to define it on our own types. This leads us to understanding its structure more in depth and how it’s different frommap
andzip
.
- Clone repo
cd
into this directory- Run
swift package generate-xcodeproj
- Open
ManyFacesOfFlatMapPt2.xcworkspace
- Build the package for macOS
- Open the playground