Jump to content

Sorting algorithms/Quicksort: Difference between revisions

imported>Rcmlz
imported>Rcmlz
Line 8,252:
return @input if @input.elems < 2;
my $pivot = @input.pick;
@input.race.classify(-> $element { $element* cmp $pivot })
andthen
{
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.