Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
18
Task/Arrays/Nanoquery/arrays.nanoquery
Normal file
18
Task/Arrays/Nanoquery/arrays.nanoquery
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// create a fixed-length array (length 10)
|
||||
arr = array(10)
|
||||
|
||||
// assign a value to the first position in the array and then display it
|
||||
arr[0] = "hello, world!"
|
||||
println arr[0]
|
||||
|
||||
|
||||
// create a variable-length list
|
||||
l = list()
|
||||
|
||||
// place the numbers 1-10 in the list
|
||||
for i in range(1,10)
|
||||
append l i
|
||||
end
|
||||
|
||||
// display the list
|
||||
println l
|
||||
Loading…
Add table
Add a link
Reference in a new issue