Apply a function to every element in a list to every element in another list - Haskell
<p>My ultimate goal is to find if a list y contains all the elements of list x (I'm checking if x is a subset of y sort of thing)</p>

<pre><code>subset x y =
and [out | z &lt;- x
         , out &lt;- filter (==z) y ]
</code></pre>

<p>This doesn't work, and I know it's because z is a list still. I'm trying to make sense of this.</p>

<p>I think I may have to use the <code>elem</code> function, but I'm not sure how to split x into chars that I can compare separately through y.</p>

<p>I'm ashamed to say that I've been working on this simple problem for an hour and a half.</p>