take<I> static method

Conveyor<From<I>, I> take<I>(
  1. int n
)

Implementation

static Conveyor<From<I>, I> take<I>(int n) => n <= 0 ? halt() : consume((i) => produce(i, take(n-1)));