Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Idiom # 172: Insert entry in map

See programming-idioms.org:

Code

Data structures in Fuzion are immutable by default, therefore this creates a new map which is assigned to a new field.

Running Example

Example using a mutable map

Fuzion also has mutable data structures, which require use of the mutate effect.

last changed: 2025-07-10