/** * Performs the specified stream transformation with the chunk structure of * the stream exposed. * * @tsplus static effect/core/stream/Stream.Aspects chunksWith * @tsplus pipeable effect/core/stream/Stream chunksWith */ export function chunksWith( f: (stream: Stream>) => Stream> ) { return (self: Stream): Stream => Stream.suspend(f(self.chunks).unchunks) }