baml.iter.Filter$stream

The iterator `baml.iter.Iterator.filter` returns.

Reference version

Signature

class baml.iter.Filter$stream<T, E, E2>

The iterator baml.iter.Iterator.filter returns.

Each next pulls from source until predicate accepts an element or the source runs out, so a single next may consume many elements and call the predicate many times.

Source:<builtin>/baml/ns_iter/iter.bamlbytes 0–0

Fields

predicate

unknown

Decides whether an element is yielded (true) or skipped.

Implementations

baml.Concrete for T

Source:<builtin>/baml/core.bamlbytes 747–779