Sorting algorithms/Quicksort: Difference between revisions
Content added Content deleted
(→{{header|Java}}: Now works with all Comparable types) |
|||
Line 456: | Line 456: | ||
cat to.sort | qsort |
cat to.sort | qsort |
||
=={{header|V}}== |
|||
[qsort |
|||
[joinparts [pivot [*list1] [*list2] : [*list1 pivot *list2]] view]. |
|||
[split_on_first_element uncons [>] split&]. |
|||
[small?] |
|||
[] |
|||
[split_on_first_element [list1 list2 : [list1 qsort list2 qsort joinparts]] view i] |
|||
ifte]. |