Anonymous user
Associative array/Creation: Difference between revisions
m
Spelling/grammar/aesthetics
m (Spelling/grammar/aesthetics) |
|||
Line 1:
{{task}}In this task, the goal is to create an [[associative array]].▼
▲In this task, the goal is to create an [[associative array]].
=={{header|Ada}}==
Line 185 ⟶ 183:
map.put("bar", 10);
map.put("baz", 15);
map.put("foo", 6)
"Putting" a value for a key that already exists ("map.put("foo", 6)" in this example) will replace and return the old value for the key.
===
map.get("foo") // => 5
Line 469 ⟶ 468:
=={{header|Tcl}}==
All arrays in Tcl are associative.
|