title: Check if list array contains element in another list
body: <p>Given a list array <em>a</em>, and another list <em>b</em> and <em>d</em>. How can I check if list element in <em>a</em> exists in <em>b</em> (or another example, in <em>d</em>)? I know I can do it with <em>a</em> for loop of a element and check if each element is in <em>b</em>/<em>d</em>, but is there any API do it quickly?</p>
  
  <pre><code> a = [[1,4], [17,33,2],[2,33]]
  
   b = [1,4,5,6]
   c = [[1,4]]
  
   d = [2,33]
   e = [[17,33,2],[2,33]]
  </code></pre>
  
  <hr>
  
  <p>Let put it this way, give list <em>a</em> and <em>b</em>, how can I write the loop below efficiently? Let say in one line using list comprehension.</p>
  
  <pre><code>        newls = []
          for sublist in a:
             newls.append(list(set(sublist).intersection(set(b))))  
  </code></pre>