Caffeinated Coder
Book an appointment
Lesson 29 · Designing code

Functional style

Functional style builds programs from small pure functions that turn inputs into outputs and change nothing else. Follow a list of four numbers through a pipeline of map, filter and reduce, each step making a new list, and compare it with a loop that keeps rewriting one variable.

11 min10 steps5 questionsIntermediate
Fig 29 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.