Sorting algorithms/Quicksort: Difference between revisions
Content added Content deleted
(→ES5) |
m (→ES5) |
||
Line 2,530: | Line 2,530: | ||
Emphasising clarity more than run-time optimisation (for which Array.sort() would be a better option) |
Emphasising clarity more than run-time optimisation (for which Array.sort() would be a better option) |
||
<lang JavaScript>// |
<lang JavaScript>// quickSort :: (Ord a) => [a] -> [a] |
||
function quickSort(xxs) { |
function quickSort(xxs) { |
||