R/as-list.R

Defines functions as_list_unnamed_nlists

# @export
# extras::as_list_unnamed

# @inherit extras::as_list
# @export
# @examples
# as_list(nlists(nlist(x = 1)))
# as_list(nlists(nlist(x = 1), nlist(x = 3)))
as_list_unnamed_nlists <- function(x, ...) {
  x <- lapply(x, as_list_unnamed_default)
  do.call("c", x)
}

Try the nlist package in your browser

Any scripts or data that you put into this service are public.

nlist documentation built on Sept. 5, 2021, 6:05 p.m.