Guest User

Untitled

a guest
Jul 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. (defn qsort
  2. [[x & r]]
  3. (let [xs #(for [y r :when (% y x)] y)]
  4. (when x
  5. (concat (qsort (xs <=)) [x] (qsort (xs >))))))
Add Comment
Please, Sign In to add comment