intersectWith method

Iterable<T> intersectWith(
  1. Iterable<T> other
)

Returns a set of elements that are common between this iterable and other.

Implementation

Iterable<T> intersectWith(Iterable<T> other) =>
    validate().toSet().intersection(other.toSet());