Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
list = .list~new
|
||||
index = list~insert("abc") -- insert a first item, keeping the index
|
||||
Call show
|
||||
list~insert("def") -- adds to the end
|
||||
Call show
|
||||
list~insert("123", .nil) -- adds to the begining
|
||||
Call show
|
||||
list~insert("456", index) -- inserts between "abc" and "def"
|
||||
Call show
|
||||
list~remove(index) -- removes "abc"
|
||||
Call show
|
||||
exit
|
||||
show:
|
||||
s=''
|
||||
Do x over list
|
||||
s=s x
|
||||
end
|
||||
say s
|
||||
Return
|
||||
Loading…
Add table
Add a link
Reference in a new issue