union method

SortedSet<T> union(
  1. SortedSet<T> other
)

Returns a new SortedSet which contains all the elements of this set and other.

Implementation

SortedSet<T> union(SortedSet<T> other) {
  return SortedSet<T>.from(_container.union(other._container), _compare);
}