Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
13
Task/Arrays/AntLang/arrays.antlang
Normal file
13
Task/Arrays/AntLang/arrays.antlang
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