import * as tsplus_module_1 from "@effect/core/stm/TArray/operations/reduce";
/**
 * Count the values in the array matching a predicate.
 *
 * @tsplus fluent ets/TArray count
 */

export function count_(self, f) {
  return tsplus_module_1.reduce_(self, 0, (n, a) => f(a) ? n + 1 : n);
}
/**
 * Count the values in the array matching a predicate.
 *
 * @tsplus static ets/TArray/Aspects count
 */

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