Sorting Algorithms/Circle Sort: Difference between revisions
m
→{{header|Wren}}: Minor tidy
(Added XPL0 example.) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 2,733:
=={{header|Wren}}==
<syntaxhighlight lang="
circleSort = Fn.new { |a, lo, hi, swaps|
if (lo == hi) return swaps
Line 2,762:
}
var
for (a in
System.print("Before: %(a)")
while (circleSort.call(a, 0, a.count-1, 0) != 0) {}
|