Sorting algorithms/Bubble sort: Difference between revisions
Content added Content deleted
PatGarrett (talk | contribs) m (→{{header|360 Assembly}}: a correction) |
SqrtNegInf (talk | contribs) |
||
Line 2,938: | Line 2,938: | ||
{{works with|Rakudo|#24 "Seoul"}} |
{{works with|Rakudo|#24 "Seoul"}} |
||
<lang perl6>sub bubble_sort (@a |
<lang perl6>sub bubble_sort (@a) { |
||
for ^@a -> $i { |
for ^@a -> $i { |
||
for $i ^..^ @a -> $j { |
for $i ^..^ @a -> $j { |