Sorting algorithms/Comb sort: Difference between revisions

m
(Added XPL0 example.)
m (→‎{{header|Wren}}: Minor tidy)
Line 3,552:
 
=={{header|Wren}}==
<syntaxhighlight lang="ecmascriptwren">var combSort = Fn.new { |a|
var gap = a.count
while (true) {
Line 3,573:
}
 
var asarray = [ [4, 65, 2, -31, 0, 99, 2, 83, 782, 1], [7, 5, 2, 6, 1, 4, 2, 6, 3] ]
for (a in asarray) {
System.print("Before: %(a)")
combSort.call(a)
9,482

edits