Associative array/Creation: Difference between revisions

(Added Elixir)
Line 763:
# typed (coerces to float)</lang>
=={{header|Elena}}==
<lang elena>#define system'collections.
#define system'collections.
 
// --- Program ---
Line 771 ⟶ 772:
// 1. Create
#var aMap := Dictionary new.
aMap set &key:@"key" &object:= "foox".
aMap set &@"key:"key2" &object:= "foo2foo".
aMap set &key:@"keykey2":= &object:"foofoo2".
aMap@"key3":= "foo3".
 
aMap@"key4":= "foo4".
].</lang>
 
Anonymous user