From 85bbf0b8d38e15d7bf17c588a752d406540ca35a Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Fri, 18 Nov 2022 16:05:18 +0100 Subject: [PATCH] Changes --- lazyList.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)