On Monday, September 26, 2011 2:58:59 PM UTC-6, Paul Richards wrote: > > This will replace an O(n) call to "nth" with an O(n) call to copy into > a vector, so still leaving me with O(n). >
Oops, right :) If you're getting random elements out of the same sorted set multiple times, then it might be still be worth it to pay the cost of vectorizing the set once in exchange for faster subsequent random selections. But if not, then I guess not so much. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en