[Rd] New pipe operator
Gabor Grothendieck
ggrothend|eck @end|ng |rom gm@||@com
Mon Dec 7 20:23:35 CET 2020
On Mon, Dec 7, 2020 at 2:02 PM Kevin Ushey <kevinushey using gmail.com> wrote:
>
> IMHO the use of anonymous functions is a very clean solution to the
> placeholder problem, and the shorthand lambda syntax makes it much
> more ergonomic to use. Pipe implementations that crawl the RHS for
> usages of `.` are going to be more expensive than the alternatives. It
You wouldn't have to crawl the expression. This does it at the syntax level.
e <- quote( { gsub("x", "y", .) } )
c(e[[1]], quote(. <- LHS), e[-1])
More information about the R-devel
mailing list