Applies the function f
to the value a
, ignores the result, and returns the original value a
.
Applies the function f
to the value a
, ignores the result, and returns the original value a
. Practical for debugging, like x.someMethod.tee(println(_)).someOtherMethod...
. Similar to the tee
UNIX command.
Applies function f
to a value a
, like f(a)
, but in flipped order and doesn't need parentheses.
Applies function f
to a value a
, like f(a)
, but in flipped order and doesn't need parentheses. Can be chained, like x |> f |> g
.