ContainsAll

ContainsAll[e1,e2]

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

ContainsAll[e2]

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

Examples

open allclose all

Basic Examples  (2)

The first list contains all elements of the second list:

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

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

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

Scope  (4)

Options  (2)

Applications  (1)

Properties & Relations  (3)

See Also

SubsetQ  ContainsNone  ContainsAny  ContainsExactly  ContainsOnly  MemberQ  FreeQ  Intersection  Complement

Introduced in 2015
(10.2)