aioplus.aenumerate¶
- aioplus.aenumerate(aiterable, /, start=0)¶
Enumerate
aiterable.- Parameters:
aiterable (AsyncIterable[T]) – Iterable.
start (int, default 0) – Start.
- Returns:
Iterator.
- Return type:
Examples
>>> aiterable = arange(4, 23) >>> [(index, num) async for index, num in aenumerate(aiterable)] [(0, 4), (1, 5), (2, 6), (3, 7), ..., (17, 21), (18, 22)]
See also