intersection method

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

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

Implementation

HashSet<T> intersection(HashSet<T> other) {
  return HashSet<T>.from(_container.intersection(other._container));
}