codegrip icon indicating copy to clipboard operation
codegrip copied to clipboard

Pipe/de-pipe

Open hadley opened this issue 2 years ago • 1 comments

foo(x, y)
# <->
x |> foo(y)

hadley avatar Dec 05 '22 18:12 hadley

And a variant for debugging intermediary values:

out <- x |>
  foo() |>
  bar() |>
  baz()

# ->

tmp1 <- foo(x)
tmp2 <- bar(tmp1)
out <- baz(tmp2)

lionel- avatar Dec 15 '22 11:12 lionel-