( self: Stream.Stream<A, E, R> )
| 8649 | |
| 8650 | /** @internal */ |
| 8651 | export const zipWithPrevious = <A, E, R>( |
| 8652 | self: Stream.Stream<A, E, R> |
| 8653 | ): Stream.Stream<[Option.Option<A>, A], E, R> => |
| 8654 | pipe( |
| 8655 | self, |
| 8656 | mapAccum<Option.Option<A>, A, [Option.Option<A>, A]>( |
| 8657 | Option.none(), |
| 8658 | (prev, curr) => [Option.some(curr), [prev, curr]] |
| 8659 | ) |
| 8660 | ) |
| 8661 | |
| 8662 | /** @internal */ |
| 8663 | export const zipWithPreviousAndNext = <A, E, R>( |
no test coverage detected