ichain: Iterator that chains multiple arguments together into a...

Description Usage Arguments Value Examples

Description

Generates an iterator that returns elements from the first argument until it is exhausted. Then generates an iterator from the next argument and returns elements from it. This process continues until all arguments are exhausted Chaining is useful for treating consecutive sequences as a single sequence.

Usage

1

Arguments

...

multiple arguments to iterate through in sequence

Value

iterator that iterates through each argument in sequence

Examples

1
2
3
4
5
it <- ichain(1:3, 4:5, 6)
as.list(it)

it2 <- ichain(1:3, levels(iris$Species))
as.list(it2)

itertools2 documentation built on May 2, 2019, 3:37 p.m.