<div dir="ltr">The same way lists:zip/2 does it with the position in each list.  So, maps:zip([key1, key2, key3],[val1, val2, val3]) = #{key1 => val1, key2 => val2, key3 => val3}.<div><br></div><div><span style="font-family:'helvetica neue',helvetica,arial,sans-serif"><a href="http://erlang.org/doc/man/lists.html#zip-2">http://erlang.org/doc/man/lists.html#zip-2</a></span></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, May 6, 2016 at 1:27 PM Grzegorz Junka <<a href="mailto:list1@gjunka.com">list1@gjunka.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Andrew, how would the zip function know which keys to join with
      which values? Unless you mean only zipping values for the same
      keys?<br>
    </p></div><div bgcolor="#FFFFFF" text="#000000">
    <br>
    <div>On 06/05/2016 20:19, Andrew Berman
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Not sure if this was mentioned yet, but a maps:zip
        addition like what is in lists only building a map would be
        really handy.</div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Fri, May 6, 2016 at 10:26 AM Robert Virding
          <<a href="mailto:rvirding@gmail.com" target="_blank">rvirding@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">
            <div>Yes, I am not alone in wanting these!<br>
              <br>
            </div>
          </div>
          <div dir="ltr">Robert<br>
            <br>
          </div>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On 6 May 2016 at 18:12, Jean
              Chassoul <span dir="ltr"><<a href="mailto:chassoul@gmail.com" target="_blank">chassoul@gmail.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div dir="ltr">
                  <div class="gmail_extra"><br>
                    <div class="gmail_quote"><span>On Thu, Apr 21, 2016
                        at 5:09 PM, Robert Virding <span dir="ltr"><<a href="mailto:rvirding@gmail.com" target="_blank"><a href="mailto:rvirding@gmail.com" target="_blank">rvirding@gmail.com</a></a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                          <div dir="ltr">
                            <div>My maps:first/1 and maps:next/2will be
                              coming when? :-)<span><font color="#888888"><br>
                                  <br>
                                </font></span></div>
                          </div>
                        </blockquote>
                        <div><br>
                        </div>
                      </span>
                      <div>+1 </div>
                      <div><br>
                      </div>
                      <div>(= <br>
                      </div>
                    </div>
                    <br>
                  </div>
                </div>
                <br>
                _______________________________________________<br>
                erlang-questions mailing list<br>
                <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
                <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
          _______________________________________________<br>
          erlang-questions mailing list<br>
          <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
          <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
erlang-questions mailing list
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>