Category:AntLang: Difference between revisions

Blanked the page
No edit summary
(Blanked the page)
 
(15 intermediate revisions by the same user not shown)
Line 1:
{{language|AntLang}}
 
AntLang is a practical functional language.
 
Its documentation is on github: [https://github.com/ac1235/AntLang-Docs/ 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>
Anonymous user