Intersection
Intersection[list1,list2,…]
gives a sorted list of the elements common to all the listi.
Details and Options
- If the listi are considered as sets, Intersection gives their intersection.
- Intersection[list1,list2,…] can be input in StandardForm and InputForm as list1⋂list2⋂…. The character ⋂ can be entered as inter or \[Intersection].
- The listi must have the same head, but it need not be List.
- Intersection[list1,…,SameTest->test] applies test to each pair of elements in the listi to determine whether they should be considered the same.
- Intersection[a,b] can be entered in StandardForm and InputForm as a⋂b or a \[Intersection]b .
Examples
open allclose allGeneralizations & Extensions (1)
Intersection works with any head, not just List:
Options (3)
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