Jump to content

Sorting algorithms/Quicksort: Difference between revisions

→‎{{header|V}}: Using binrec like joy
(→‎{{header|V}}: Using binrec like joy)
Line 464:
 
[qsort
[joinparts [pivotp [*list1l1] [*list2l2] : [*list1l1 pivotp *list2l2]] view].
[split_on_first_elementsplit_on_first uncons [>] split&].
[small?]
[]
[split_on_first_elementsplit_on_first [list1l1 list2l2 : [list1l1 qsort list2l2 qsort joinparts]] view i]
ifte].
 
The way of joy (using binrec)
[qsort
[small?] []
[uncons [>] split&]
[[p [*l] [*g] : [*l p *g]] view]
binrec].
418

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.