-
Notifications
You must be signed in to change notification settings - Fork 120
Open
Description
Line 56 in 8d69afc
| Avoid using `\()` in a pipe, and remember to use informative argument names. |
One interpretation of the current wording is that this is discouraged:
x |>
lapply(\(xi) xi$sum()) |>
...I think what's intended is that only using it as the "piped" function is discouraged:
x |>
(\(y) sum(y))()In fact, I would guess using "longhand" function() is also discouraged as the LHS:
x |>
(function(y) sum(y))()Should we just say "only pipe to a named function" instead? perhaps dropping this sentence and adding that note to the section on pipes?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels