import * as tsplus_module_1 from "@tsplus/stdlib/collections/List/definition";
import * as tsplus_module_2 from "@effect/core/stm/TSet/operations/toList";
import * as tsplus_module_3 from "@effect/core/stm/STM/operations/map";
/**
 * Returns the set's cardinality.
 *
 * @tsplus getter ets/TSet size
 */

export function size(self) {
  return tsplus_module_3.map_(tsplus_module_2.toList_(self), _ => tsplus_module_1.length(_));
}
//# sourceMappingURL=size.mjs.map