Expression Journeys
Two journeys on for-comprehensions beyond the basics: named state records that replace positional tuples, and explicit parallel composition for independent computations.
For-comprehensions are the idiom that turns chains of flatMap into something that reads like a sequence of statements. They sit on top of Monad (sequential) and Applicative (parallel); the For Comprehension reference page covers the typeclass machinery these journeys build on.
| Journey | Focus | Exercises |
|---|---|---|
| ForState | Named record state, lens threading, zoom, matchThen | 13 |
| ForPath Parallel | Applicative parallel composition for Path types | 9 |
Previous: Boundary Mapping Next: ForState