Streams, effects and beautiful folds, a winning trilogy
summary
Builds a tiny streaming stack: a pure producer Done/One/Many that comes from iterator/unfold/repeat and supports map/flatMap, pairs it with origami folds are applicative to compose counts/max/sum‑of‑squares and side‑effects, and uses the F effect to handle async, bracketed resource safety and short‑circuiting (example: MD5 + safe close). It reproduces most streaming features but short‑circuit/backpressure needs an external queued bridge (so it works functionally but can be less efficient than push‑oriented engines).
AI-written summary · about
chapters (8)
- 0:00Start
- 13:20Differences?
- 28:23Topology
- 28:39Sinks
- 30:13Streaming
- 40:30Concurrency
- 40:57Backpressure
- 41:26Merging queues








