Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -7,13 +7,13 @@
|
|||
[
|
||||
// 1. Create
|
||||
#var aMap := Dictionary new.
|
||||
aMap @ "key" << "foox".
|
||||
aMap @ "key" << "foo".
|
||||
aMap @ "key2" << "foo2".
|
||||
aMap @ "key3" << "foo3".
|
||||
aMap @ "key4" << "foo4".
|
||||
aMap set &key:"key" &value:"foox".
|
||||
aMap set &key:"key" &value:"foo".
|
||||
aMap set &key:"key2" &value:"foo2".
|
||||
aMap set &key:"key3" &value:"foo3".
|
||||
aMap set &key:"key4" &value:"foo4".
|
||||
|
||||
// Enumerate
|
||||
control foreach:aMap &do: &&:aKeyValue
|
||||
[ console write:(aKeyValue Key) write:" : " writeLine:(aKeyValue Value) ].
|
||||
control foreach:aMap &do: aKeyValue
|
||||
[ console write:(aKeyValue key) write:" : " writeLine:(aKeyValue value) ].
|
||||
].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue