Changes
This commit is contained in:
parent
4c39250ee5
commit
85bbf0b8d3
@ -56,9 +56,12 @@ class LazyList(list):
|
|||||||
def peak(self, offset=0):
|
def peak(self, offset=0):
|
||||||
return self[self._n - 1 + offset]
|
return self[self._n - 1 + offset]
|
||||||
|
|
||||||
def iterIndex(self):
|
def curIndex(self):
|
||||||
return self._n - 1
|
return self._n - 1
|
||||||
|
|
||||||
|
def nextIndex(self):
|
||||||
|
return self._n
|
||||||
|
|
||||||
def __getitem__(self, index):
|
def __getitem__(self, index):
|
||||||
self._requireLen(index)
|
self._requireLen(index)
|
||||||
return super().__getitem__(index)
|
return super().__getitem__(index)
|
||||||
|
Loading…
Reference in New Issue
Block a user