import { STMOnSuccess } from "@effect/core/stm/STM/definition/primitives";
/**
 * Feeds the value produced by this effect to the specified function,
 * and then runs the returned effect as well to produce its results.
 *
 * @tsplus fluent ets/STM flatMap
 */

export function flatMap_(self, f) {
  return new STMOnSuccess(self, f);
}
/**
 * Feeds the value produced by this effect to the specified function,
 * and then runs the returned effect as well to produce its results.
 *
 * @tsplus static ets/STM/Aspects flatMap
 */

export const flatMap = f => self => flatMap_(self, f);
//# sourceMappingURL=flatMap.mjs.map