Associative array/Iteration: Difference between revisions

Content added Content deleted
m (BaCon, BASIC256, and BBC BASIC moved to the BASIC section.)
Line 408: Line 408:
For more information on maps in Babel, view [https://github.com/claytonkb/clean_babel/blob/master/std.sp std.sp] (see the section titled "map utilities").
For more information on maps in Babel, view [https://github.com/claytonkb/clean_babel/blob/master/std.sp std.sp] (see the section titled "map utilities").


=={{header|BaCon}}==
=={{header|BASIC}}==
==={{header|BaCon}}===
<syntaxhighlight lang="qbasic">DECLARE associative ASSOC STRING
<syntaxhighlight lang="qbasic">DECLARE associative ASSOC STRING


Line 427: Line 428:
LOOKUP creates a numerically indexed array of the keys of the associative array, with the number of elements stored in the field following the SIZE keyword.
LOOKUP creates a numerically indexed array of the keys of the associative array, with the number of elements stored in the field following the SIZE keyword.


=={{header|BASIC256}}==
==={{header|BASIC256}}===
''Solution is at [[Associative_array/Creation#BASIC256]]''.
''Solution is at [[Associative_array/Creation#BASIC256]]''.


=={{header|BBC BASIC}}==
==={{header|BBC BASIC}}===
<syntaxhighlight lang="bbcbasic"> REM Store some values with their keys:
<syntaxhighlight lang="bbcbasic"> REM Store some values with their keys:
PROCputdict(mydict$, "FF0000", "red")
PROCputdict(mydict$, "FF0000", "red")