// ets_tracing: off
import * as Tp from "../../../../Collections/Immutable/Tuple";
import * as O from "../../../../Option";
import * as MapAccum from "./mapAccum";
/**
 * Zips each element with the previous element. Initially accompanied by `None`.
 */

export function zipWithPrevious(self) {
  return MapAccum.mapAccum_(self, O.emptyOf(), (prev, next) => Tp.tuple(O.some(next), Tp.tuple(prev, next)));
}
//# sourceMappingURL=zipWithPrevious.js.map