Sorting algorithms/Strand sort: Difference between revisions
m
→{{header|Julia}}
Line 670:
{{trans|Python}}
<lang julia>function mergelist(a, b)
end
end
Line 684:
function strand(a)
end
end
s
end
strandsort(a) = (out = strand(a); while !isempty(a) out = mergelist(out, strand(a)) end; out)
Line 701:
[1, 1, 2, 3, 3, 5, 6, 7]
</pre>
=={{header|Kotlin}}==
|