<div dir="ltr"><div>Maps does not have a syntax for variable keys, that does not mean that you cannot have variable keys. Using the maps module you can add and get any keys you want to a map.<br><br></div>Lukas<br><div><div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 9:12 PM, David Mercer <span dir="ltr"><<a href="mailto:dmercer@gmail.com" target="_blank">dmercer@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 link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Also, maps cannot have variable keys.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">DBM<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:erlang-questions-bounces@erlang.org" target="_blank">erlang-questions-bounces@erlang.org</a> [mailto:<a href="mailto:erlang-questions-bounces@erlang.org" target="_blank">erlang-questions-bounces@erlang.org</a>] <b>On Behalf Of </b>Jesper Louis Andersen<br>
<b>Sent:</b> Friday, February 07, 2014 06:39<br><b>To:</b> </span><span style="font-size:10.0pt;font-family:"MS UI Gothic","sans-serif"">ÓÃ</span><span style="font-size:10.0pt;font-family:"PMingLiU","serif"">»§</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>
<b>Cc:</b> Erlang (E-mail)<br><b>Subject:</b> Re: [erlang-questions] What is the difference between maps and dict in R17<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div>
<p class="MsoNormal">In the long run, maps may probably subsume dict and gb_trees. In the short term they won't since maps currently is not optimized for a large number of keys.<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
<u></u> <u></u></p><div><p class="MsoNormal">On Fri, Feb 7, 2014 at 10:19 AM, <span style="font-family:"MS Gothic"">ÓÃ</span><span style="font-family:MingLiU">»§</span> <<a href="mailto:zehongzheng2008@163.com" target="_blank">zehongzheng2008@163.com</a>> wrote:<u></u><u></u></p>
<div><p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">Both of maps and dict are used as map, so when and where to use maps?</span><span style="font-size:10.5pt;font-family:"Arial","sans-serif""><u></u><u></u></span></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt"><br><br><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" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><u></u><u></u></p></div><p class="MsoNormal"><br><br clear="all"><u></u><u></u></p><div>
<p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <br>J. <u></u><u></u></p></div></div></div></div></div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div></div></div></div></div>