Chaining
Symmetry of chaining.
#
Chaining by last parameterSymbol: |>
Works as transformation rule.
It takes the result of expression and puts it as the last parameter to the next expression.
If you want to use such functional programming libraries as rambda
you will find |>
operator very useful.
In the following example phone
constant equals 'IPHONE'
:
#
Chaining by first parameterSymbol: <|
Works as transformation rule.
It takes the result of the expression and puts it as the second parameter to the next expression.
Because of "Polish notation" application order it's hard to do chains with functions stored in maps.
Look how ugly it looks:
With <|
it can be rewritten as: