Anonymous user
Associative array/Creation: Difference between revisions
Add BaCon
(Add BaCon) |
|||
Line 275:
("bar" 42)
("baz" 77)) ls2map !</lang>
=={{header|BaCon}}==
<lang qbasic>DECLARE associative ASSOC STRING
associative("abc") = "first three"
associative("xyz") = "last three"
PRINT associative("xyz")</lang>
{{out}}
<pre>
prompt$ ./assoc
last three
</pre>
String keys, with ASSOC to a given data type. Sizing is dynamic.
=={{header|BASIC256}}==
|