Learn R Programming

itertools (version 0.1-3)

izip: Create an iterator over multiple iterables

Description

Create an iterator that iterates over multiple iterables, returning the values as a list.

Usage

izip(...)

Arguments

...
The iterables to iterate over.

Examples

Run this code
# Iterate over two iterables of different sizes
as.list(izip(a=1:2, b=letters[1:3]))

Run the code above in your browser using DataLab