Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
|pairs|
|
||||
pairs := Dictionary
|
||||
from: { 'hello' -> 1. 'world' -> 2. '!' -> 3. 'another!' -> 3 }.
|
||||
|
||||
"iterate over keys and values"
|
||||
pairs keysAndValuesDo: [ :k :v |
|
||||
('(k, v) = (%1, %2)' % { k. v }) displayNl
|
||||
].
|
||||
|
||||
"iterate over keys"
|
||||
pairs keysDo: [ :key |
|
||||
('key = %1, value = %2' % { key. pairs at: key }) displayNl
|
||||
].
|
||||
|
||||
"iterate over values"
|
||||
pairs do: [ :value |
|
||||
('value = %1' % { value }) displayNl
|
||||
].
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(pairs keys) do: [ :k | "..." ].
|
||||
(pairs values) do: [ :v | "..." ].
|
||||
Loading…
Add table
Add a link
Reference in a new issue