Sorting algorithms/Quicksort: Difference between revisions
Content added Content deleted
m (Added Io version.) |
m (Cosmetic changes in the Io version.) |
||
Line 651: | Line 651: | ||
quickSortInPlace := method( |
quickSortInPlace := method( |
||
copy( |
copy(quickSort) |
||
self, call sender, call message |
|||
)) |
|||
) |
) |
||
) |
) |
||
Line 661: | Line 659: | ||
lst quickSortInPlace println # ==> list(-4, -1, 2, 5, 9)</lang> |
lst quickSortInPlace println # ==> list(-4, -1, 2, 5, 9)</lang> |
||
Another more low-level Quicksort implementation can be found in Io's [[http://github.com/stevedekorte/io/blob/master/samples/misc/qsort.io github ]] repository. |
Another more low-level Quicksort implementation can be found in Io's [[http://github.com/stevedekorte/io/blob/master/samples/misc/qsort.io github ]] repository. |
||
=={{header|J}}== |
=={{header|J}}== |
||
{{eff note|J|/:~}} |
{{eff note|J|/:~}} |