Category:AntLang: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
For example check this fibonacci implementation: |
For example check this fibonacci implementation: |
||
<lang AntLang>fib:{foldl[{x concat seq[(-1 elem x) + -2 elem x]}; 0 seq 1; range[x]]}</lang> |
<lang AntLang>fib:{foldl[{x concat seq[(-1 elem x) + -2 elem x]}; 0 seq 1; range[x]]}</lang> |
||
AntLang has many unconventional features like first class operators, since operator = function with arity 2: |
|||
<lang AntLang>op:{elem[x; seq[+; -; *]]} |
|||
2 op[0] 2</lang> |
Revision as of 08:49, 19 May 2016
AntLang
This programming language may be used to instruct a computer to perform a task.
Listed below are all of the tasks on Rosetta Code which have been solved using AntLang.
This programming language may be used to instruct a computer to perform a task.
See Also: |
|
---|
AntLang is a practical functional language.
Its documentation is on github: Documentation on github
For example check this fibonacci implementation: <lang AntLang>fib:{foldl[{x concat seq[(-1 elem x) + -2 elem x]}; 0 seq 1; range[x]]}</lang>
AntLang has many unconventional features like first class operators, since operator = function with arity 2: <lang AntLang>op:{elem[x; seq[+; -; *]]} 2 op[0] 2</lang>
Pages in category "AntLang"
The following 24 pages are in this category, out of 24 total.