// tracing: off
import * as T from "../_internal/effect"
import { scanReduceM_ } from "./scanReduceM"
/**
 * Statefully maps over the elements of this stream to produce all intermediate results.
 *
 * See also `Stream#scan`.
 */

export function scanReduce_(self, f) {
  return scanReduceM_(self, (curr, next) => T.succeed(f(curr, next)))
}
/**
 * Statefully maps over the elements of this stream to produce all intermediate results.
 *
 * See also `Stream#scan`.
 */

export function scanReduce(f) {
  return (self) => scanReduce_(self, f)
}
//# sourceMappingURL=scanReduce.js.map
