import * as tsplus_module_1 from "@effect/core/stm/TMap/operations/removeIf";
/**
 * Retains bindings matching predicate and returns removed bindings.
 *
 * @tsplus fluent ets/TMap retainIf
 */

export function retainIf_(self, f) {
  return tsplus_module_1.removeIf_(self, _ => !f(_));
}
/**
 * Retains bindings matching predicate and returns removed bindings.
 *
 * @tsplus static ets/TMap/Aspects retainIf
 */

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