Sorting algorithms/Sleep sort: Difference between revisions
Content added Content deleted
(→{{header|D}}: Simplify D sleep sort implementation) |
|||
Line 255:
=={{header|D}}==
import core.thread, std.concurrency, std.datetime,
std.stdio, std.algorithm, std.conv;
{
return;
}, number);
▲ writef("%d ", val);
}
</lang>
▲void main(in string[] args) {
▲ if (!args.empty)
▲ foreach (const arg; args[1 .. $])
▲}</lang>
{{out}}
<pre>sorting_algorithms_sleep_sort 1 6 2 5 3 4
|