ContainsOnly[e1,e2] yields True if contains only elements that appear in .
ContainsOnly[e2]is an operator form that yields True when the object to which it is applied contains only elements that appear in .
The first list contains only elements in the second list:
The first list contains elements not present in the second list:
ContainsAll ContainsNone ContainsAny ContainsExactly MemberQ FreeQ Complement Intersection