Skip to content

Instantly share code, notes, and snippets.

@apg apg/gist:769825
Created Jan 7, 2011

What would you like to do?
(defn qsort
[[x & r]]
(let [xs #(for [y r :when (% y x)] y)]
(when x
(concat (qsort (xs <=)) [x] (qsort (xs >))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.