const fileName_1 = "(@effect/core) _src/stm/TArray/operations/forAll.ts";
import * as tsplus_module_1 from "@effect/core/stm/TArray/operations/exists";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/negate";
/**
 * Atomically evaluate the conjunction of a predicate across the members of
 * the array.
 *
 * @tsplus fluent ets/TArray forAll
 */

export function forAll_(self, f) {
  return tsplus_module_2.negate(tsplus_module_1.exists_(self, a => !f(a)), fileName_1 + ":8:42");
}
/**
 * Atomically evaluate the conjunction of a predicate across the members of
 * the array.
 *
 * @tsplus static ets/TArray/Aspects forAll
 */

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