Skip to content

Latest commit

 

History

History

0043-the-many-faces-of-flatmap-pt2

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 from map and zip.

Getting Started

  • Clone repo
  • cd into this directory
  • Run swift package generate-xcodeproj
  • Open ManyFacesOfFlatMapPt2.xcworkspace
  • Build the package for macOS
  • Open the playground