RosettaCodeData/Task/Associative-array-Iteration/Babel/associative-array-iteration.pb
2015-02-20 00:35:01 -05:00

21 lines
282 B
Text

((main
{ (('foo' 12)
('bar' 33)
('baz' 42))
mkhash !
entsha
dup
{1 ith nl <<} each
"-----\n" <<
{2 ith %d nl <<} each})
(mkhash
{ <- newha ->
{ <- dup ->
dup 1 ith
<- 0 ith ->
inskha }
each }))