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 | Duration | Exercises |
|---|---|---|---|
| ForState | Named record state, lens threading, zoom, matchThen | ~25 min | 11 |
| ForPath Parallel | Applicative parallel composition for Path types | ~20 min | 9 |
Next: ForState