small medium large xlarge

Generic-user-small
24 Sep 2014, 18:06
Rory Hughes (1 post)

I believe I found a typo in “The Amazing Pipe Operator”.

val |> f(a,b) is basically the same as calling f(val(a,b))

Should it not be f(val, a, b)?

Please correct me if I’m wrong here but the pipe is meant to prepend the return of the previous function to the arguments of the next, right?

You must be logged in to comment