Skip to content
DoingCamp CS

Make it comfy

Lesson style

Quick mode shows the key picture, a summary and the practice. Good for a refresher.

Theme
Font

Both fonts are designed to be easy to read. Some readers with dyslexia prefer Lexend.

Text size
Spacing
Animations

Lesson 17 of 20 · about 15 min

Functional programming and immutable data

Functional programming builds programs from pure functions and data that never changes. Instead of editing values, you make new ones. It makes code easier to test, reason about and run in parallel.

🔓 Unlock this lesson

This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.

In this lesson you'll learn:

  • Functional programming
  • Immutable data
  • Algebraic data type

Free to try in F03 Programming 2: Abstraction & Recursion:

The first 3 lessons of every course are free, no account needed.