itertools (version 0.1-3)

chain: Create a chaining iterator

Description

Create an iterator that chains multiple iterables together.

Usage

chain(...)

Arguments

...
The iterables to iterate over.

Examples

Run this code
# Iterate over two iterables
as.list(chain(1:2, letters[1:3]))

Run the code above in your browser using DataLab