cdh.core.utils.enumerate_to module
- class cdh.core.utils.enumerate_to.EnumerateTo(iterable: Iterable, to_n: int, start: int = 0)[source]
Bases:
object
Enumerates a given iterator up to a given n items. If the iterator can supply more than n items, the rest is ignored.
If the iterator has less than n items, the remaining values will be filled in as None.
- cdh.core.utils.enumerate_to.enumerate_to
alias of
EnumerateTo