New pipe operator
On Mon, Dec 7, 2020 at 2:02 PM Kevin Ushey <kevinushey at 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])