<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Wow!  Thanks.<br>
    <br>
    <div class="moz-cite-prefix">On 1/30/2019 8.13 AM, Guilherme Andrade
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAA5f+NWB7d0+WanijUrQo8ZcLLOg7JFB+a8r7e6O7NEQSXj5QQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">Hello Donald,<br>
          <div><br>
            Ever since Erlang/OTP 18 (or 19? I don't recall which), you
            can use the shorter map update syntax like this:<br>
            <br>
          </div>
          <div>Map = #{foo => bar, hello => world},<br>
          </div>
          <div>UpdatedMap = Map#{foo := barbar, hello := moon}.<br>
            <br>
          </div>
          <div>More information here:<br>
            <a
href="http://erlang.org/doc/reference_manual/expressions.html#map-expressions"
              moz-do-not-send="true">http://erlang.org/doc/reference_manual/expressions.html#map-expressions</a><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, 30 Jan 2019 at 12:27,
          Donald Steven <<a href="mailto:t6sn7gt@aim.com"
            moz-do-not-send="true">t6sn7gt@aim.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The
          documentation for <a class="moz-txt-link-freetext" href="maps:update">maps:update</a> states:  update(Key, Value,
          Map1) -> <br>
          Map2, but since update has an arity of 3, this doesn't work: 
          <br>
          update(Key1, Value1, Key2, Value2, Map1) -> Map2.  Is there
          an <br>
          other-than one-by-one-sequential-update to update more than
          one <br>
          key-value in one shot?<br>
          <br>
          Thanks.<br>
          <br>
          <br>
          Don<br>
          <br>
          <br>
          _______________________________________________<br>
          erlang-questions mailing list<br>
          <a href="mailto:erlang-questions@erlang.org" target="_blank"
            moz-do-not-send="true">erlang-questions@erlang.org</a><br>
          <a href="http://erlang.org/mailman/listinfo/erlang-questions"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
        </blockquote>
      </div>
      <br clear="all">
      <br>
      -- <br>
      <div dir="ltr" class="gmail_signature">
        <div dir="ltr">
          <div>
            <div dir="ltr">
              <div>
                <div dir="ltr">Guilherme<br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>