Nothing
#' Iteror that chains multiple arguments together into a single iterator
#'
#' `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.
#'
#' @export
#' @author Peter Meilstrup
#' @param ... multiple iterable arguments
#' @return iteror that iterates through each argument in sequence
#'
#' @examples
#' it <- i_chain(1:3, 4:5, 6)
#' as.list(it)
#'
#' it2 <- i_chain(1:3, levels(iris$Species))
#' as.list(it2)
i_chain <- function(...) {
L <- iteror(list(...))
i_concat(L)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.