Associative array/Iteration: Difference between revisions
Add EasyLang
m (→{{header|FutureBasic}}: Added descriptions above options) |
Jazzedpineda (talk | contribs) (Add EasyLang) |
||
Line 922:
println(`$key .`)
}</syntaxhighlight>
=={{header|EasyLang}}==
<syntaxhighlight lang="easylang">
associative$[][] = [ [ 1 "associative" ] [ 2 "arrays" ] ]
print "Key-value pairs:"
for i = 1 to len associative$[][]
print associative$[i][1] & " " & associative$[i][2]
.
print "Just keys:"
for i = 1 to len associative$[][]
print associative$[i][1]
.
print "Just values:"
for i = 1 to len associative$[][]
print associative$[i][2]
.
</syntaxhighlight>
{{out}}
<pre>
Key-value pairs:
1 associative
2 arrays
Just keys:
1
2
Just values:
associative
arrays
</pre>
=={{header|EchoLisp}}==
|