fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 172: Insert entry in map
Idiom # 172: Insert entry in map
See
programming-idioms.org
:
String based approach
Code
m¹ := m.add k v
What are effects?
Running Example
ex172 is m := ((container.ps_map i32 String).new [1, 2, 3, 4 ] ["eins", "zwei", "drei", "vier"]) k := 5 v := "fünf" m¹ := m.add k v say m say m¹
What are effects?
Numeric way
Running Example for i32
--error reading file--
What are effects?
last changed: 2024-07-01
next: Idiom # 173: Format a number with grouped thousands