Stream.take(n: number): Stream<T, E>
Limits the stream to at most n successful values. Errors pass through
without counting against the limit. After n successes are yielded, the
stream stops immediately (any pending errors from earlier in the pipeline
may still be yielded before stopping).
Stream<T, E>