def deep(self): n = int(1e4) l = LazyList(List.wrap(range(n))) l.index_of(n - 1).should.contain(n - 1)
def index_of(self): l = LazyList(range(30), chunk_size=20) l.index_of(21).should.contain(21) l.index_of(49).should.be.empty