Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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