title: elixir not updating values in mapset using enum.each
body: <pre class="lang-elixir prettyprint-override"><code>map_set = MapSet.new()
  Enum.each(filtered_list, fn x -&gt; map_set = MapSet.put(MapSet.new(map_set),x)
  </code></pre>
  
  <p>Here filtered_list is a list containing string but when I am printing map_set it is returning an empty set. Why?</p>