Hello everyone, I’ve been wondering if it is possible to use a guard that can reenforce a clause in order to verify if a list is inside another list (order does’t matter). Something like:
def my_function(list_a, list_b) when list_a in list_b, do: "something..."
Obviously, this will not work because it will check if the first list is a single element from the second list. The expected output could be something similar to Enum.all?/2. Thanks for any suggestions