Associative array/Iteration: Difference between revisions
→{{header|Arturo}}
m (MiniScript: added comment and changed map name to avoid built-in type) |
Drkameleon (talk | contribs) |
||
Line 272:
<lang arturo>// create a dictionary
dict: #{
name: "john"
surname: "doe"
age: 33
}
Line 283:
}
print "----"
// Iterate over keys
loop
print "key = " + &
}
print "----"
// Iterate over values
loop
print "value = " + &
}</lang>
|