This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Operations  /
Intersection

  • Intersection[ , , ... ] gives a sorted list of the elements common to all the .
  • If the are considered as sets, Intersection gives their intersection.
  • Intersection[ , , ... ] can be input in StandardForm and InputForm as ... . The character can be entered as inter or \[Intersection].
  • The must have the same head, but it need not be List.
  • Intersection[ , ... , SameTest-> test ] applies test to each pair of elements in the to determine whether they should be considered the same.
  • Intersection[ a , b ] can be entered in StandardForm and InputForm as ab or a \[Intersection] b.
  • See the Mathematica book: Section 1.8.8.
  • See also: Union, Complement.

    Further Examples

    The intersection of these two lists has two elements.

    In[1]:=

    Out[1]=