IntersectingQ

IntersectingQ[list1,list2]

yields True if list1 and list2 have at least one element in common, and False otherwise.

Details

Examples

Basic Examples  (1)

Test whether lists share any elements:

Wolfram Research (2014), IntersectingQ, Wolfram Language function, https://reference.wolfram.com/language/ref/IntersectingQ.html.

Text

Wolfram Research (2014), IntersectingQ, Wolfram Language function, https://reference.wolfram.com/language/ref/IntersectingQ.html.

BibTeX

@misc{reference.wolfram_2021_intersectingq, author="Wolfram Research", title="{IntersectingQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/IntersectingQ.html}", note=[Accessed: 20-October-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_intersectingq, organization={Wolfram Research}, title={IntersectingQ}, year={2014}, url={https://reference.wolfram.com/language/ref/IntersectingQ.html}, note=[Accessed: 20-October-2021 ]}

CMS

Wolfram Language. 2014. "IntersectingQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IntersectingQ.html.

APA

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