Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Arrays/Ring/arrays.ring
Normal file
11
Task/Arrays/Ring/arrays.ring
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# create an array with one string in it
|
||||
a = ['foo']
|
||||
|
||||
# add items
|
||||
a + 1 # ["foo", 1]
|
||||
|
||||
# set the value at a specific index in the array
|
||||
a[1] = 2 # [2, 1]
|
||||
|
||||
# retrieve an element
|
||||
see a[1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue