This commit is contained in:
Dominik Moritz Roth 2022-11-18 16:05:18 +01:00
parent 4c39250ee5
commit 85bbf0b8d3

View File

@ -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)