Intersection

Intersection[list1,list2,]

gives a sorted list of the elements common to all the listi.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Find elements common to all the lists given:

In[1]:=
Click for copyable input
Out[1]=

Enter using inter:

In[1]:=
Click for copyable input
Out[1]=

Generalizations & Extensions  (1)

Options  (3)

Applications  (1)

Properties & Relations  (1)

See Also

Union  Complement  And  BitAnd  SequenceAlignment  IntersectingQ  DisjointQ  ContainsAny  ContainsNone

Tutorials

Introduced in 1988
(1.0)
| Updated in 1996
(3.0)