Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
map = .directory~new
|
||||
map["foo"] = 5
|
||||
map["bar"] = 10
|
||||
map["baz"] = 15
|
||||
map["foo"] = 6
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
item = map["foo"] -- => 6
|
||||
item = map["invalid"] -- => .nil
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
loop key over map
|
||||
say key
|
||||
end
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
loop value over map~allItems
|
||||
say value
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
s = map~supplier
|
||||
loop while s~available
|
||||
say s~index "=>" s~item
|
||||
s~next
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue