intersectionWithSet method

ImmortalSet<T> intersectionWithSet(
  1. Set<Object?> other
)

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

See intersection. It iterates over other, which must therefore not change during the iteration.

Implementation

ImmortalSet<T> intersectionWithSet(Set<Object?> other) =>
    ImmortalSet._internal(_set.intersection(other));