title: Is there an easy way to || nil pattern match in elixir?
body: <p>I have an <code>enum</code> that I am using <code>group_by</code> with.</p>
  
  <p><code>Enum.group_by(my_list, fn x -&gt; x.param end)</code></p>
  
  <p>The result is that it groups it by the <code>param</code> value. I would like to pattern match on that quickly so I have:</p>
  
  <p><code>%{"a" =&gt; a, "b" =&gt; b, "c" =&gt; c } = Enum.group_by(my_list, fn x -&gt; x.param end)</code></p>
  
  <p>But this runs into issues when list is missing either "a", "b", or "c" as params. </p>
  
  <p>Notice that I can set it to a variable and it will result in nil if I access it and it doesnt exist: </p>
  
  <pre><code>grouped = Enum.group_by(my_list, fn x -&gt; x.param end)
  grouped["a"] # this will show as nil or the result if it exists
  </code></pre>
  
  <p>But for readability, I wanted to just pattern match and use the variables. Is this something that is unsupported in Elixir?</p>