Call a function: Difference between revisions

(Added SSEM)
Line 108:
AntLang provides two ways to apply a function.
One way is infix application.
<lang AntLang>2 * 2 + 9 /whitespace important!</lang>
Infix application is right associative, so x f y g z means x f (y g z) and not (x f y) g z.
You can break this rule using parenthesis.
The other way is prefix application.
<lang AntLang>*[2; +[2; 9]]
echo["Hello!"]
time[]</lang>
Anonymous user