intersection method

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

Returns a new SortedSet which is the intersection between this set and other.

Implementation

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