Pipes
Pipe Syntax
The pipe (=>
) takes the expression on the left and "pipes" it into the function right, wherever there are underscores.
For every underscore you use, a new instance of the left-hand expression will be made. For instance, myExpr β someFunction(_, _)
turns into someFunction(myExpr, myExpr)
. This many result in unwanted side-effects.
Working Example
Last updated