Sorting algorithms/Strand sort: Difference between revisions

m
m (Added the Sidef language)
Line 1,457:
while (x && y) {
given (x[-1] <=> y[-1])
> ( 1) { out.prepend(x.pop) }
> (-1) { out.prepend(y.pop) }
 : { out.prepend(x.pop, y.pop) }
};
x + y + out;
2,747

edits