Associative array/Iteration: Difference between revisions

Content added Content deleted
(Add BaCon)
Line 745: Line 745:


=={{header|Elena}}==
=={{header|Elena}}==
<lang elena>#import system'collections.
<lang elena>import system'collections.
#import system'routines.
import system'routines.
#import extensions.
import extensions.


program =
program =
Line 760: Line 760:


// 2. Enumerate
// 2. Enumerate
aMap run &each: aKeyValue
aMap run each:
[ console writeLine:(aKeyValue key):" : ":aKeyValue ].
(:aKeyValue)[ console printLine:(aKeyValue key):" : ":aKeyValue ].
].</lang>
].</lang>