Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 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