On 2 July 2013 08:10, Cedric Greevey <cgree...@gmail.com> wrote: > Er...that won't use my custom comparator. :) >
Sorry, I thought it was clear how to generalize from my previous example. Here it is with a custom comparator: (into (sorted-set-by >) [1 2 4 2 1 2 3]) ;; => #{4 3 2 1} > On Tue, Jul 2, 2013 at 2:40 AM, Ray Miller <r...@1729.org.uk> wrote: > >> On 1 July 2013 21:39, Cedric Greevey <cgree...@gmail.com> wrote: >> >>> >>> What bugs me is that "sorted-set-by" needs "apply" to convert a coll >>> into a sorted set; there's no short-and-pithy "into" for that case, and no >>> coll-taking and varargs version pair like vec/vector either. >>> >> >> (into (sorted-set) coll) >> >> -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.