[erlang-questions] Wanted additions to the maps module?

Lukas Larsson <>
Mon May 9 15:22:17 CEST 2016


On Mon, May 9, 2016 at 2:54 PM, zxq9 <> wrote:

>
> That's my whole point. Why the desire for a next/1 and previous/1 instead
> of
> a list-style operation over the map as a whole, since outside of an
> abstract
> sense of "doing something with each element" there is nothing interesting
> that can possibly be gained from introducing an implicit concept of order?
>

For one thing Mr. Virding needs them to implement his lua erlang language
thing :) We also could make great use of them in the standard libraries to
build efficient variants of maps:fold and friends.

I'm sure there are usecases that we have not seen yet that will come up.
I've learned over the years that people never use the API:s you create the
way to expect them to be used and always come up with the strangest and
cleverest ways of doing things.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160509/ff5b90e0/attachment.html>


More information about the erlang-questions mailing list