Returns a new set containing all elements that are present in either input
set. Duplicate elements are automatically handled since sets only contain
unique values. This operation is commutative: union(a, b) === union(b, a).
Performance: O(n + m) where n and m are the sizes of the input sets.
Computes the union of two ISet instances.
Returns a new set containing all elements that are present in either input set. Duplicate elements are automatically handled since sets only contain unique values. This operation is commutative:
union(a, b) === union(b, a)
.Performance: O(n + m) where n and m are the sizes of the input sets.