ContainsAny

ContainsAny[e1,e2]

yields True if e1 contains any of the elements of e2.

ContainsAny[e2]

is an operator form that yields True when the object to which it is applied contains any of the elements in e2.

Examples

open all close all

Basic Examples  (2)

The first list contains some of the elements of the second list:

In[1]:=
Click for copyable input
Out[1]=

The first list does not contain any of the elements of the second list:

In[1]:=
Click for copyable input
Out[1]=

Scope  (5)

Options  (2)

Applications  (1)

Properties & Relations  (6)

Introduced in 2015
(10.2)