/** * Zips each element with the previous element. Initially accompanied by * `None`. * * @tsplus getter effect/core/stream/Stream zipWithPrevious */ export function zipWithPrevious( self: Stream ): Stream, A]> { return self.mapAccum( Maybe.empty(), (prev, next) => [Maybe.some(next), [prev, next] as const] ) }