utils module
- DMT.core.utils.enumerate_reversed(iterable, start=0, stop=None, step=1)[source]
Generator to go through an iterable from back to front with correct indexes without copy of the iterable.
- Source:
- Parameters:
- iterable
Iterable
[_T
] - start, stop, step
int
,optional
Starting and ending index with step size for the iterable
- iterable
- Yields:
index
,value
index always refers to the true index of the iterable, independent of start or stop!