itertools
count[T: type](start: T = 0, step: T = 1) -> Generator[T]
cycle[T: type](iterable: Generator[T], /) -> Generator[T]
repeat[T: type](object: T, times: Optional[int] = None) -> Generator[T]
accumulate[T: type](iterable: Generator[T], func = lambda a, b: (a + b), *, initial = 0)
accumulate[T: type](iterable: Generator[T], func = lambda a, b: (a + b))
class chain
Constructors
1
Methods
1
compress[T: type, B: type](data: Generator[T], selectors: Generator[B]) -> Generator[T]
dropwhile[T: type](predicate: CallableTrait[([T], bool)], iterable: Generator[T], /) -> Generator[T]
filterfalse[T: type](predicate: CallableTrait[([T], bool)], iterable: Generator[T], /) -> Generator[T]
groupby(iterable, key = None)
islice[T: type](iterable: Generator[T], stop: Optional[int], /) -> Generator[T]
islice[T: type](iterable: Generator[T], start: Optional[int], stop: Optional[int], step: Optional[int] = None, /) -> Generator[T]
starmap(function, iterable, /)
takewhile[T: type](predicate: CallableTrait[([T], bool)], iterable: Generator[T], /) -> Generator[T]
tee[T: type](iterable: Generator[T], n: int = 2, /) -> List[Generator[T]]
zip_longest(*iterables, fillvalue)
zip_longest(*args)
product(*iterables, repeat: int)
product[repeat: Literal[int] = 1](*iterables)
combinations(pool, r: int)
combinations[r: Literal[int]](pool)
combinations_with_replacement(pool, r: int)
combinations_with_replacement[r: Literal[int]](pool)
permutations(pool, r = None) -> Generator
permutations[r: Literal[int]](pool) -> Generator