Associative array/Iteration: Difference between revisions
m
→{{header|ooRexx}}: add output
m (→{{header|REXX}}: aligned to capitols (in the output) for easier reading.) |
Walterpachl (talk | contribs) m (→{{header|ooRexx}}: add output) |
||
Line 1,888:
=={{header|ooRexx}}==
<lang oorexx>d = .directory~new
d["hello"] = 1
d["world"] = 2
Line 1,909 ⟶ 1,908:
say "key =" s~index", value =" s~item
s~next
end</lang>
{{out}}
<pre>key = !
key = world
key = hello
value = 3
value = 2
value = 1
key = !, value = 3
key = world, value = 2
key = hello, value = 1</pre>
=={{header|Oz}}==
|