I would like to know how i can determine if two elements in a list exist. For example the setup would look like this:
liste = {"b", "d1", "a","z"}
MemberQ[{{"b", "a"}}, liste]
One problem i have is that it should not depend on the order of the two element, i.e. {"b", "a"} == {"a", "b"} that i want to check. I just want to know if these exist in a given list.
ContainsAll
, cheers! $\endgroup$Intersection[liste, {"b", "a"}] != {}
$\endgroup$