[erlang-questions] Ordered set with lower_bound

Robert Virding rvirding@REDACTED
Fri Oct 9 01:34:24 CEST 2009


You will have to roll your own, though you can use either as a base from
which to start. gb_sets is more efficient than ordsets except for small
sets.

Robert

2009/10/9 Igor Ribeiro Sucupira <igorrs@REDACTED>

> Hi.
>
> I need some ordered set that allows me to "search and then iterate"
> efficiently. In other words, I need this functionality:
> http://www.cplusplus.com/reference/stl/set/lower_bound/
>
> After looking at the documentation for gb_sets and ordsets, I have
> concluded that Erlang does not provide that functionality and I'll
> have to roll my own. Is it the right conclusion?  :-)
>
> Thanks.
> Igor.
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>
>


More information about the erlang-questions mailing list