intersection method

Iterable<V> intersection(
  1. Iterable<V> other
)

Common elements between this list and other

In set theory, the intersection of a collection of sets is the set that contains their shared elements. Given two sets, A = {2, 3, 4, 7, 10} and B = {1, 3, 5, 7, 9}, their intersection is as follows: A ∩ B = {3, 7}

Implementation

Iterable<V> intersection(Iterable<V> other) =>
    fn.intersection<V>(this, other);