Synchronous
Symmetry of synchronous computations.
#
FunctionSymbol: ->
Translated to JavaScript function.
First parameter is function parameters.
Last parameter is return of the function.
All parameters between are simple code lines.
If you need to return something before last line you can use returnable conditional operator ?!
:
Calling function is just an application of it to parameters:
To call parameterless function use ()
These functions can be used as lambda functions and be passed as a parameter to another function or can be returned as value from another function.
#
Immediately invoked functional expressionSymbol: <-
Translated to JavaScript function.
In the following example result is 3
:
It's useful when you need to calculate something based on conditions:
You can use this operator with conditional operator ?
to make non returnable code: