Those are a bit different. Naming of data structures in Redis can be a bit confusing. What's called a sorted set actually is more like a sorted map - keys mapped to scores and set is sorted by scores.
On Tuesday, September 18, 2012 5:51:25 AM UTC-7, Moritz Ulrich wrote: > > > Hi! > > I don't have the time to look at your code right now, but I have one > suggestion: > > Artem Yankov writes: > > > 2. What would be a best way to implement sorted sets (like in Redis)? I > > used sorted maps and sorting them by values which I highly doubt is a > > log(n) operation.. > > `clojure.core/sorted-set' and `clojure.core/sorted-set-by' > > http://clojuredocs.org/clojure_core/clojure.core/sorted-set > > -- > Moritz Ulrich > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
