Skip to content

IntersectingQ

Tests whether two lists share at least one element.

$ wo 'IntersectingQ[{1, 2, 3}, {3, 4}]'
True
$ wo 'IntersectingQ[{1, 2}, {3, 4}]'
False