filter<I> static method

Conveyor<From<I>, I> filter<I>(
  1. bool f(
    1. I i
    )
)

Implementation

static Conveyor<From<I>, I> filter<I>(bool f(I i)) => consume<I, I>((i) => f(i) ? produce(i) : halt()).repeatUntilExhausted();