Defining a function will return a Function object.
A Function can only take one argument, but that argument can be an Index List or Pair List.
Single line function definitions are expressed thusly:
For multiple arguments you can express it thusly:
Defaults can be expressed as such:
Multiline functions are expressed thusly (Only the last line is returned):
ƒ(x):
log("Hello, World.")
x +(1)
Function invocation is expressed thusly:
increment: ƒ(x): x +(1)
increment(1)
For multiple arguments you would express it thusly:
increment: ƒ({value, by}): x +(z)
increment({value: 1, by: 1})
Of course for currying you would express thusly:
And currying with multiline is express thusly:
Defining a function will return a Function object.
A Function can only take one argument, but that argument can be an Index List or Pair List.
Single line function definitions are expressed thusly:
For multiple arguments you can express it thusly:
Defaults can be expressed as such:
Multiline functions are expressed thusly (Only the last line is returned):
Function invocation is expressed thusly:
For multiple arguments you would express it thusly:
Of course for currying you would express thusly:
And currying with multiline is express thusly: