Jump to content

Sorting algorithms/Quicksort: Difference between revisions

m
m (→‎{{header|ooRexx}}: add output)
Line 2,970:
=={{header|ooRexx}}==
{{trans|Python}}
<lang ooRexx> a = .array~Of(4, 65, 2, -31, 0, 99, 83, 782, 1)
say 'before:' a~toString( ,', ')
a = .array~Of(4, 65, 2, -31, 0, 99, 83, 782, 1)
a = quickSort(a)
say ' after:' a~toString( ,', ')
exit
 
Line 2,997:
return less~~appendAll(pivotList)~~appendAll(more)
end</lang>
[{out}]
<pre>before: a = .array~Of(4, 65, 2, -31, 0, 99, 83, 782, 1)
after: -31, 0, 1, 2, 4, 65, 83, 99, 782 </pre>
 
=={{header|Oz}}==
2,298

edits

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