( self: Stream.Stream<A, E, R> )
| 8687 | |
| 8688 | /** @internal */ |
| 8689 | export const zipWithPrevious = <A, E, R>( |
| 8690 | self: Stream.Stream<A, E, R> |
| 8691 | ): Stream.Stream<[Option.Option<A>, A], E, R> => |
| 8692 | pipe( |
| 8693 | self, |
| 8694 | mapAccum<Option.Option<A>, A, [Option.Option<A>, A]>( |
| 8695 | Option.none(), |
| 8696 | (prev, curr) => [Option.some(curr), [prev, curr]] |
| 8697 | ) |
| 8698 | ) |
| 8699 | |
| 8700 | /** @internal */ |
| 8701 | export const zipWithPreviousAndNext = <A, E, R>( |
no test coverage detected