import * as tsplus_module_1 from "@tsplus/stdlib/data/Tuple/make";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/map";
import * as tsplus_module_3 from "@effect/core/stm/TMap/operations/transformSTM";
/**
 * Atomically updates all values using a transactional function.
 *
 * @tsplus fluent ets/TMap transformValuesSTM
 */

export function transformValuesSTM_(self, f) {
  return tsplus_module_3.transformSTM_(self, kv => tsplus_module_2.map_(f(kv.get(1)), _ => tsplus_module_1.make(kv.get(0), _)));
}
/**
 * Atomically updates all values using a transactional function.
 *
 * @tsplus static ets/TMap/Aspects transformValuesSTM
 */

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