Skip to content
Prev 59429 / 63430 Next

brief update on the pipe operator in R-devel

If
    3 |> x => f(x, y=x)
were allowed then I think that
     runif(1) |> x => f(x, y=x)
be parsed as
     f(runif(1), y=runif(1))
so runif(1) would be evaluated twice, leading to incorrect results from f().

-Bill

On Fri, Jan 15, 2021 at 2:16 PM Avi Gross via R-devel <r-devel at r-project.org>
wrote: