-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
meta-proposalLanguage proposalsLanguage proposalstheme-internalsRelates to internal operations of the languageRelates to internal operations of the languagetype-enhancementNew feature or requestNew feature or request
Description
In R, ellipsis are often collected into a list of values using function(...) { list(...) }
, but if we are to add #47, then we don't really have a good way of collecting "the rest". Instead, we should have some way of collecting ellipsis contents into a variable.
f <- function(a, b, ..rest) {
}
This would assign a new variable rest
which contains the contents of list(...)
.
Together with #47, this would mean that we could also do something like:
list(head, ..tail) <- list(1, 2, 3, 4, 5, 6, 7)
Metadata
Metadata
Assignees
Labels
meta-proposalLanguage proposalsLanguage proposalstheme-internalsRelates to internal operations of the languageRelates to internal operations of the languagetype-enhancementNew feature or requestNew feature or request