Stream

class Stream

Description

A type-erased iterable

Inheritance:

Members defined in Stream (1 member)
Members inherited from LazyIterator (7 members)

__bool__

Returns True if this range is not empty.

at

Get value at index. This is computed lazily. Returns None for out of bounds index.

collect

Collect all items into a list.

count

Count the number of items in this range. This is computed lazily.

empty

Check if this range is empty.

for_each

Lazily visit each item in this range. Visitation is stopped on returning False or VisitAction.Stop;

get

Get value at index, This is computed lazily. Throws IndexError on out of bounds.

Methods

__iter__() → Iterator[syside.T]