effect-io-ai

Package: effect
Module: Stream

Stream.rechunk

Re-chunks the elements of the stream into chunks of n elements each. The last chunk might contain less than n elements.

Signature

declare const rechunk: { (n: number): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>; <A, E, R>(self: Stream<A, E, R>, n: number): Stream<A, E, R>; }

Source

Since v2.0.0