diff --git a/lazyList.py b/lazyList.py index db0f116..ab7a6f8 100644 --- a/lazyList.py +++ b/lazyList.py @@ -56,9 +56,12 @@ class LazyList(list): def peak(self, offset=0): return self[self._n - 1 + offset] - def iterIndex(self): + def curIndex(self): return self._n - 1 + def nextIndex(self): + return self._n + def __getitem__(self, index): self._requireLen(index) return super().__getitem__(index)