Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/clj/joy/q.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
(recur (list*
(filter smaller? xs) ;; #: Work all < pivot
pivot ;; #: Work pivot itself
(remove smaller? xs) ;; #: Work all > pivot
(remove smaller? xs) ;; #: Work all >= pivot
parts))) ;; #: cancat parts
(when-let [[x & parts] parts]
(cons x (sort-parts parts))))))) ;; #: Sort rest if more parts
Expand All @@ -33,4 +33,4 @@
(qsort (rand-ints 20))

(take 10 (qsort (rand-ints 10000)))
)
)