[erlang-questions] maps:first
Oliver Bollmann
oliver.bollmann@REDACTED
Tue Aug 13 15:34:17 CEST 2019
I often need maps:first(Map), is there plan for it?
My current implementation is:
first(Map) ->
case maps:next(maps:iterator(Map))of {Key,Val,_} -> {Key,Val};
none -> none
end. Create the iterator always a new map?
--
Grüße
Oliver Bollmann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190813/0119079c/attachment.htm>
More information about the erlang-questions
mailing list