// ets_tracing: off import * as Tp from "../../../../Collections/Immutable/Tuple/index.js" import * as O from "../../../../Option/index.js" import type * as C from "../core.js" import * as MapAccum from "./mapAccum.js" /** * Zips each element with the previous element. Initially accompanied by `None`. */ export function zipWithPrevious( self: C.Stream ): C.Stream, A]>> { return MapAccum.mapAccum_(self, O.emptyOf(), (prev, next) => Tp.tuple(O.some(next), Tp.tuple(prev, next)) ) }