title: Combining two maps on same key in Elixir
body: <p>I'm pretty new to Elixir and just wanted to find what the best way is to combine two maps with on same key. To be more specific:</p>
  
  <pre><code>name_map = %{
    105 =&gt; "Jim",
    48 =&gt; "Maria",
    62 =&gt; "Karen",
    888 =&gt; "Foo"
  }
  
  job_map = %{
    105 =&gt; "Social worker",
    48 =&gt; "Programmer",
    62 =&gt; "Teacher",
    999 =&gt; "Bar"
  }
  </code></pre>
  
  <p>and I am trying to get</p>
  
  <pre><code>combined_map = %{
    105 =&gt; %{"name" =&gt; "Jim", "job" =&gt; "Social worker"},
    48 =&gt; %{"name" =&gt; "Maria", "job" =&gt; "Programmer"},
    62 =&gt; %{"name" =&gt; "Karen", "job" =&gt; "Teacher"},
    888 =&gt; %{job: nil, name: "Foo"},
    999 =&gt; %{job: "Bar", name: nil}}
  }
  </code></pre>
  
  <p>Thanks in advance for any help!</p>