Class chain (2.30.0)

chain(*iterables) --> chain object

Return a chain object whose .next() method returns elements from the first iterable until it is exhausted, then elements from the next iterable, until all of the iterables are exhausted.

Methods

chain

chain(*iterables) --> chain object

Return a chain object whose .next() method returns elements from the first iterable until it is exhausted, then elements from the next iterable, until all of the iterables are exhausted.

__init__

__init__()

API documentation for __init__ method.

from_iterable

from_iterable()

Alternative chain() constructor taking a single iterable argument that evaluates lazily.