Some experimental operators for function application
Forward operator for
uncurry
with 2 parameters
(1,2)
@@|> (+)
--> 3An operator for
flip.
Think of the # symbol as appearing where the missing argument would go.
4
|> (/) 2
--> 0.5
4
|> flip (/) 2
--> 2
4
|> (/) # 2
--> 2Forward function application with precedence set to 9. Allows you to avoid parentheses when you want the argument to appear before the function name in an inline expression.
1 ||> toString ++ 2 ||> toString
--> "12"
Alias for
Toolkit.Function.applyListGiven a list containing any number of functions and a value accepted by every function in the list, return a list containing all of the results. Note that to use this operator, all of the results must be of the same type.