[erlang-questions] gb_trees missing function!?

Dmitry Kolesnikov <>
Fri May 25 21:30:04 CEST 2012


Hello,

gb_trees  is pretty efficient in many use cases but I am starting to miss couple of features:
 * range(From, To, Tree) -> [{Key, Val}] to retrieve multiple keys
 * iterator(Key, Tree) -> Iter start iterator from Key

of course lists:dropwhile(fun(X) -> X < Key end, gb_trees:to_list(Tree)) makes trick but I think it is not very efficient...

What is your opinion? 

- Dmitry




More information about the erlang-questions mailing list