[erlang-questions] map elements in defined order

Karl Nilsson kjnilsson@REDACTED
Thu Oct 26 20:28:41 CEST 2017


Doesn’t it just mean that for any two maps with the same keyvalues the
internal order is the same for a given erlang version? That should be
sufficient for comparison but unlikely be useful for anything else.

On Thu, 26 Oct 2017 at 19:07, Ulf Wiger <ulf@REDACTED> wrote:

> But they *are* ordered. Otherwise, comparison of two maps would be
> undefined.
>
> BR,
> Ulf W
>
>
> Den 26 okt. 2017 18:20 skrev "Roger Lipscombe" <roger@REDACTED>:
>
> On 26 October 2017 at 16:30, Ulf Wiger <ulf@REDACTED> wrote:
> > Wouldn't it be reasonable to have such a function?
>
> First thought: No, because people would start abusing it. Maps *aren't*
> ordered.
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20171026/033486ea/attachment.htm>


More information about the erlang-questions mailing list