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 {}:

Wolfram Research (1988), Intersection, Wolfram Language function, https://reference.wolfram.com/language/ref/Intersection.html (updated 1996).

Text

Wolfram Research (1988), Intersection, Wolfram Language function, https://reference.wolfram.com/language/ref/Intersection.html (updated 1996).

CMS

Wolfram Language. 1988. "Intersection." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/Intersection.html.

APA

Wolfram Language. (1988). Intersection. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Intersection.html

BibTeX

@misc{reference.wolfram_2024_intersection, author="Wolfram Research", title="{Intersection}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/Intersection.html}", note=[Accessed: 09-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_intersection, organization={Wolfram Research}, title={Intersection}, year={1996}, url={https://reference.wolfram.com/language/ref/Intersection.html}, note=[Accessed: 09-October-2024 ]}