Learn You a Bend
A little functional programming. A little parallel magic. A lot of runnable examples.
An approachable, interactive guide to Bend 2, inspired by Learn You a Haskell. No Haskell experience required. Edit the code as you read and run it right in your browser.
Contents
Getting started
Functional foundations
- 1. Values, not a shopping list of commands
- 2. Functions and the suspicious little plus
- 3. Shapes in tiny labelled boxes
- 4. Lists: one biscuit and the rest of the tin
- 5. Functions in your backpack
Resources, effects, and proofs
- 6. Quantities: the librarian is counting
- 7. Effects, without pretending printing is pure
- 8. Two elves, two independent jobs
- 9. Laws: bring a proof, not just good intentions
- 10. Bonus: a mutable array with one owner