Associative array/Creation: Difference between revisions

Lingo added
(Added XLISP)
(Lingo added)
Line 1,502:
</lang>
Key 'green' is associated with data item 50 255 50
 
=={{header|Lingo}}==
<lang lingo>
props = [#key1: "value1", #key2: "value2"]
 
put props[#key2]
-- "value2"
put props["key2"]
-- "value2"
put props.key2
-- "value2"
put props.getProp(#key2)
-- "value2"
</lang>
 
=={{header|LiveCode}}==
Anonymous user