cycler.concat

cycler.concat(left, right)[source]

Concatenate two cyclers.

The keys must match exactly.

This returns a single Cycler which is equivalent to itertools.chain(left, right)

Parameters:

left, right : Cycler

The two Cycler instances to concatenate

Returns:

ret : Cycler

The concatenated Cycler

Examples

>>> num = cycler('a', range(3))
>>> let = cycler('a', 'abc')
>>> num.concat(let)
cycler('a', [0, 1, 2, 'a', 'b', 'c'])