Add dict:is_empty/1 and orddict:is_empty/1

Magnus Henoch <[email protected]>
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <[email protected]>
This patch adds the functions dict:is_empty/1 and orddict:is_empty/1.
For dict, comparing the size against 0 runs in constant time, but not
for orddict.  My new functions are an attempt to relieve users from
having to know such implementation details.

git fetch git://github.com/legoscia/otp.git dict_orddict_is_empty

https://github.com/legoscia/otp/compare/erlang:master...legoscia:dict_orddict_is_empty
https://github.com/legoscia/otp/compare/erlang:master...legoscia:dict_orddict_is_empty.patch

Regards,
Magnus
_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.