Anonymous user
Call a function: Difference between revisions
→{{header|AntLang}}
(Added SSEM) |
|||
Line 108:
AntLang provides two ways to apply a function.
One way is infix application.
<lang AntLang>2
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;
echo["Hello!"]
time[]</lang>
|