Programming Search⌘K

Mutability and immutability

Values that can change in place, values that cannot, and the tools that languages give for each.

Concepts

  • Immutability

    An immutable value cannot change after the program makes it. A program that needs a different value makes a fresh one, so every holder of the value sees the same state.

    core