Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Arrays/ANT/arrays.ant
Normal file
13
Task/Arrays/ANT/arrays.ant
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/ Create an immutable sequence (array)
|
||||
arr: <1;2;3>
|
||||
|
||||
/ Get the head an tail part
|
||||
h: head[arr]
|
||||
t: tail[arr]
|
||||
|
||||
/ Get everything except the last element and the last element
|
||||
nl: first[arr]
|
||||
l: last[arr]
|
||||
|
||||
/ Get the nth element (index origin = 0)
|
||||
nth:arr[n]
|
||||
Loading…
Add table
Add a link
Reference in a new issue