takeWhile<I> static method

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

Implementation

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