i_concat | R Documentation |
i_concat(obj)
takes an iterable that returns
iterables, and chains together all inner values of iterables into
one iterator. Analogous to unlist(recursive=FALSE)
.
i_chain
for iterators is analogous to c()
on vectors. i_chain
constructs an iteror that returns elements from the first
argument until it is exhausted, then elements from the next
argument, and so on until all arguments have been exhausted.
i_concat(obj, ...)
i_chain(...)
obj |
an iterable. |
... |
multiple iterable arguments |
iteror that iterates through each argument in sequence
Peter Meilstrup
it <- i_chain(1:3, 4:5, 6)
as.list(it)
it2 <- i_chain(1:3, levels(iris$Species))
as.list(it2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.