title: Elixir remove common elements from two lists
body: <p>I want to remove the elements found in list b from list a. 
  The list a is printing [1,2,3,4] after execution of this code.</p>
  
  <pre><code>defmodule Test do
  def listing do
      a = [1,2,3,4]
      b = [3,4,5,6]
  
      Enum.each b, fn elemB -&gt;
          a = Enum.filter(a, fn(x) -&gt; x != elemB == true end)
          #IO.inspect a
      end 
      IO.inspect a
  end
  end
  
  Test.listing()
  </code></pre>