import * as T from "../_internal/effect"
import { mapAccumM_ } from "./mapAccumM"
/**
 * Statefully maps over the elements of this stream to produce new elements.
 */

export function mapAccum_(self, z, f) {
  return mapAccumM_(self, z, (z, o) => T.succeed(f(z, o)))
}
/**
 * Statefully maps over the elements of this stream to produce new elements.
 *
 * @dataFirst mapAccum_
 */

export function mapAccum(z, f) {
  return (self) => mapAccum_(self, z, f)
}
//# sourceMappingURL=mapAccum.js.map
