Skip to content

Latest commit

 

History

History

0042-the-many-faces-of-flatmap-pt1

This directory contains code from Point-Free Episode: The Many Faces of Flat-Map: Part 1

Previously we've discussed the map and zip operations in detail, and today we start completing the trilogy by exploring flatMap. This operation is precisely the tool needed to solve a nesting problem that map and zip alone cannot.

Getting Started

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