import * as tsplus_module_1 from "@effect/core/stm/TSet/operations/put";
import * as tsplus_module_2 from "@effect/core/stm/TSet/operations/foreach";
/**
 * Atomically transforms the set into the union of itself and the provided
 * set.
 *
 * @tsplus fluent ets/TSet union
 */

export function union_(self, other) {
  return tsplus_module_2.foreach_(other, _ => tsplus_module_1.put_(self, _));
}
/**
 * Atomically transforms the set into the union of itself and the provided
 * set.
 *
 * @tsplus static ets/TSet/Aspects union
 */

export const union = other => self => union_(self, other);
//# sourceMappingURL=union.mjs.map