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:

Enter using inter:

Generalizations & Extensions  (1)

Intersection works with any head, not just List:

Options  (3)

SameTest  (3)

Use equivalence classes based on absolute value:

Use equivalence classes based on Floor:

Use Total of list elements:

Applications  (1)

Find divisors common to 45 and 78:

Properties & Relations  (1)

If there is no intersection, the result is {}:

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