title: Filter out elements in tuple from list of tuples
body: <p>I have an list of tuples looking like this:</p>
  <pre><code>[(&quot;APPLE&quot;,[&quot;APPLE&quot;,&quot;BANANA&quot;,&quot;PEAR&quot;]),(&quot;ANANAS&quot;,[&quot;ANANAS&quot;,&quot;BANANA&quot;,&quot;APPLE&quot;])]
  </code></pre>
  <p>However I would like to remove any occurrence of the first element in the tuple from the snd list in the tuple. So I would like the list of tuples to look like:</p>
  <pre><code>[(&quot;APPLE&quot;,[&quot;BANANA&quot;,&quot;PEAR&quot;]),(&quot;ANANAS&quot;,[&quot;BANANA&quot;,&quot;APPLE&quot;])]
  </code></pre>