roundrobin¶
-
class
iteration_utilities.
roundrobin
(*iterables)¶ Round-Robin implementation ([0]).
- Parameters
- iterablesiterable
Iterables to combine using the round-robin. Any amount of iterables are supported.
- Returns
- roundrobingenerator
Iterable filled with the values of the iterables.
References
Examples
>>> from iteration_utilities import roundrobin >>> list(roundrobin('ABC', 'D', 'EF')) ['A', 'D', 'E', 'B', 'F', 'C']
-
__length_hint__
()¶ Tries to estimate for the length of the instance (returns
0
if an estimation is not possible).