Anonymous user
Associative array/Iteration: Difference between revisions
→{{header|Elena}}
mNo edit summary |
|||
Line 726:
=={{header|Elena}}==
<lang elena>#
#
▲#define extensions.
▲#symbol program =
[
// 1. Create
aMap@"key" := "foox".
aMap@"key" := "foo".
aMap@"key2":= "foo2".
aMap@"key3":= "foo3".
aMap@"key4":= "foo4".
// 2. Enumerate
aMap run &each: aKeyValue
[ console writeLine:(aKeyValue key):" : ":aKeyValue ].
|