ContainsNone

ContainsNone[e1,e2]

yields True if e1 contains none of the elements in e2.

ContainsNone[e2]

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

Examples

open allclose all

Basic Examples  (2)

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

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

The first list contains elements of the second list:

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

Scope  (4)

Options  (2)

Applications  (1)

Properties & Relations  (5)

See Also

ContainsAll  ContainsAny  ContainsOnly  ContainsExactly  DisjointQ  MemberQ  FreeQ  Complement  Intersection

Introduced in 2015
(10.2)