// ets_tracing: off
import * as T from "../_internal/effect";
import * as M from "../_internal/managed";
import { foldWhileManagedM } from "./foldWhileManagedM";
/**
 * Executes an effectful fold over the stream of values.
 */

export function foldM(s) {
  return f => self => M.use_(foldWhileManagedM(s)(_ => true)(f)(self), T.succeed);
}
//# sourceMappingURL=foldM.js.map