Sorting algorithms/Quicksort: Difference between revisions

Content added Content deleted
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>// quicksort :: (Ord a) => [a] -> [a]
<lang JavaScript>// quickSort :: (Ord a) => [a] -> [a]
function quickSort(xxs) {
function quickSort(xxs) {