Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
8
Task/Arrays/Pluto/arrays.pluto
Normal file
8
Task/Arrays/Pluto/arrays.pluto
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
local array = {}
|
||||
array:insert(42)
|
||||
array:insert(43)
|
||||
print(array:concat(", ")) -- 42, 43
|
||||
print(array[1]) -- 42, since indexing starts at 1
|
||||
print(#array) -- 2, since # is the length operator
|
||||
array:clear()
|
||||
print(#array) -- 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue