izip: Create an iterator over multiple iterables

Description Usage Arguments Examples

Description

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

Usage

1

Arguments

...

The iterables to iterate over.

Examples

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

Example output

Loading required package: iterators
[[1]]
[[1]]$a
[1] 1

[[1]]$b
[1] "a"


[[2]]
[[2]]$a
[1] 2

[[2]]$b
[1] "b"

itertools documentation built on May 2, 2019, 2:26 p.m.