[erlang-questions] strange behaviour of gb_trees
Mikhail Sobolev
mikhail.sobolev@REDACTED
Sat May 28 05:35:17 CEST 2011
Hi Nico,
On 28 May 2011 01:39, Nico Meyer <nico.meyer@REDACTED> wrote:
> At first glance I would say the argument you provide to
> gb_trees:from_orddict/1 is not an orddict. And orddict is an ordered
> list of tuples of size two. Your list is not ordered.
>
> Try instead
> 1> T = gb_trees:from_orddict( lists:sort(P) ).
That was indeed the problem. Thank you very much for spotting it!
--
Misha
More information about the erlang-questions
mailing list