Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit b7a58c2

Browse files
committed
work in progress
1 parent d22956c commit b7a58c2

File tree

2 files changed

+434
-64
lines changed

2 files changed

+434
-64
lines changed

src/sage/misc/lazy_list.pxd

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
from cpython.object cimport *
22

33
cdef class lazy_list(object):
4-
cdef object iterator
54
cdef list cache
65
cdef Py_ssize_t start, stop, step
76

7+
cdef int update_cache_up_to(self, Py_ssize_t i) except *
8+
9+
cdef class lazy_list_from_iterator(lazy_list):
10+
cdef object iterator
11+
812
cdef int update_cache_up_to(self, Py_ssize_t i) except -1
913

14+
cdef class lazy_list_from_fun(lazy_list):
15+
cdef object fun
16+
17+
cdef int update_cache_up_to(self, Py_ssize_t i) except -1
18+
1019
cdef class lazy_list_iterator(object):
1120
cdef lazy_list l
1221
cdef Py_ssize_t pos, step

0 commit comments

Comments
 (0)