import * as tsplus_module_1 from "@effect/core/io/Effect/operations/negate";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/repeatUntilEffect";
/**
 * Repeats this effect while its value satisfies the specified effectful
 * predicate or until the first failure.
 *
 * @tsplus fluent ets/Effect repeatWhileEffect
 */

export function repeatWhileEffect_(self, f, __tsplusTrace) {
  return tsplus_module_2.repeatUntilEffect_(self, a => tsplus_module_1.negate(f(a), __tsplusTrace), __tsplusTrace);
}
/**
 * Repeats this effect while its value satisfies the specified effectful
 * predicate or until the first failure.
 *
 * @tsplus static ets/Effect/Aspects repeatWhileEffect
 */

export const repeatWhileEffect = (f, __tsplusTrace) => self => repeatWhileEffect_(self, f, __tsplusTrace);
//# sourceMappingURL=repeatWhileEffect.mjs.map