Category:AntLang: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
(Blanked the page)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{language|AntLang}}

AntLang is a practical functional language.

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>

Check out [the website](http://ac1235.github.io/), if you are interested.

Latest revision as of 17:08, 13 December 2018