<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 2013-10-30 14:26, Chris King wrote:<br>
</div>
<blockquote cite="mid:op.w5rrm7itvksmfo@shuttle.squirrel"
type="cite">
<style type="text/css">body { font-family:'DejaVu Sans Mono'; font-size:12px}</style>
<div>On Wed, 30 Oct 2013 08:40:44 -0400, Robert Virding
<a class="moz-txt-link-rfc2396E" href="mailto:robert.virding@erlang-solutions.com"><robert.virding@erlang-solutions.com></a> wrote:<br>
</div>
<br>
<blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px
solid; padding-left: 1ex">
<div style="font-family: times new roman, new york, times,
serif; font-size: 12pt; color: #000000">
<div>- I need functions:<br>
</div>
<div><br>
</div>
<div>first(Map) -> {Key,Value} | error.<br>
</div>
<div>last(Map) -> {Key,Value} | error.</div>
<div>next(Key, Map) -> {Key1,Value} | error.<br>
</div>
<div>prev(Key, Map) -> {Key1,Value} | error.<br>
</div>
<div><br>
</div>
<div>for stepping through maps. Have them return both key and
value in one go as it saves an explicit fetch and the extra
cost is minimal.</div>
</div>
</blockquote>
</blockquote>
<br>
Check. I'll amend the EEP.<br>
<br>
<blockquote cite="mid:op.w5rrm7itvksmfo@shuttle.squirrel"
type="cite">
<div><br>
</div>
<div>
<div>I don't get this use case. Why do you need syntax support
for a key-value map where you don't know a priori what the
keys and values are? Why don't dict() and friends suffice?<br>
</div>
<div><br>
</div>
<div>To me this is akin to iterating through a record/tuple.</div>
</div>
</blockquote>
<br>
Actually these functions are needed, at least one is needed
internally, I think.<br>
<br>
It should be covered in comprehensions with Maps generators. Maps
generators needs next(Key, Map).<br>
<br>
But for small Maps and record like behaviour they are not needed. =)<br>
<br>
<br>
<blockquote cite="mid:op.w5rrm7itvksmfo@shuttle.squirrel"
type="cite">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</body>
</html>