Another advantage to choosing the first element as a pivot is that you can use destructuring:
(defn qsort [[pivot & coll]] (if coll) On 8 June 2012 08:44, Mark Engelberg <mark.engelb...@gmail.com> wrote: > last and drop-last are slow operations on seqs, and no matter what you > pass in for the initial input, once you hit the recursive calls, you're > passing in seqs (because that's what filter produces). Try first and rest. > > -- > 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 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