import * as tsplus_module_1 from "@effect/core/stm/TMap/operations/foldSTM";
/**
 * Atomically performs transactional-effect for each binding present in map.
 *
 * @tsplus fluent ets/TMap forEach
 */

export function forEach_(self, f) {
  return tsplus_module_1.foldSTM_(self, undefined, (_, kv) => f(kv));
}
/**
 * Atomically performs transactional-effect for each binding present in map.
 *
 * @tsplus static ets/TMap/Aspects forEach
 */

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