I think the subset and submap would be a nice addition!
Op maandag 15 februari 2010 16:23:22 UTC+1 schreef Rich Hickey:
>
> On Mon, Feb 15, 2010 at 8:45 AM, George . > wrote:
> > Currently, if you want to perform a range query on a sorted-seq (AKA
> > PersistentTreeMap), you are are advised to us
Sorry, I was mistaken.
On Tue, Feb 16, 2010 at 12:23 AM, Rich Hickey wrote:
> On Mon, Feb 15, 2010 at 8:45 AM, George . wrote:
> > Currently, if you want to perform a range query on a sorted-seq (AKA
> > PersistentTreeMap), you are are advised to use the subseq wrapper for
> > seqFrom.
> >
>
On Mon, Feb 15, 2010 at 8:45 AM, George . wrote:
> Currently, if you want to perform a range query on a sorted-seq (AKA
> PersistentTreeMap), you are are advised to use the subseq wrapper for
> seqFrom.
>
> For instance, let's say your keys are dollar values you could do (subseq
> my-map > 30) to
Hey, Sean -- that's the alternative that I've been using for performance
reasons. Unfortunately, I can't put it in a ref (well, I suppose I could
but the behavior is unspecified and definitely not good).
It'd be useful to have both the concurrency benefits of the
immutable/persistent PersistentTr
If you are running Java 6 you could always use
java.util.NavigatibleMap/Set. However, this is a workaround, and it
would be great to see Clojure support these log(N) operations
directly.
On Feb 15, 8:45 am, "George ." wrote:
> Currently, if you want to perform a range query on a sorted-seq (AKA
"with keys that range between 30 and 11" should read
"with keys that range between 30 and 100"
On Mon, Feb 15, 2010 at 10:45 PM, George . wrote:
> Currently, if you want to perform a range query on a sorted-seq (AKA
> PersistentTreeMap), you are are advised to use the subseq wrapper for
> seqFr
Currently, if you want to perform a range query on a sorted-seq (AKA
PersistentTreeMap), you are are advised to use the subseq wrapper for
seqFrom.
For instance, let's say your keys are dollar values you could do (subseq
my-map > 30) to get all entries with keys greater than 30 or (subseq my-map