MCPcopy Create free account
hub / github.com/ActiveState/code / computed

Method computed

recipes/Python/576410_Lazy_Lists/recipe-576410.py:69–72  ·  view source on GitHub ↗

Return an iterator over the values in a LazyList that have already been computed.

(self)

Source from the content-addressed store, hash-verified

67 return self[:]
68
69 def computed(self):
70 """Return an iterator over the values in a LazyList that have
71 already been computed."""
72 return self[:len(self)]
73
74 def exhaust(self, index = None):
75 """Exhaust the iterator generating this LazyList's values.

Callers 1

primegenFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected