mutable
Mutable describes an object, data value, or variable that can be changed after it is created. In programming, mutability is the property that allows in-place updates, as opposed to immutability, where values cannot be altered once created.
Mutable state can simplify algorithms that require updates but introduces potential side effects and bugs. In
Common languages treat mutability differently. Python exposes mutability through built-in containers such as lists, dicts, and
Design choices about mutability affect memory use, performance, and reasoning about code. Mutable structures can support
See also immutability, const-correctness, and mutability in programming languages.