Jump to content

Sorting algorithms/Sleep sort: Difference between revisions

m
Use the new(-ish) raku binary in second Raku example
(Add additional Go implementation using WaitGroups instead of channels)
m (Use the new(-ish) raku binary in second Raku example)
Line 1,582:
This can also be written using reactive programming:
 
<lang perl6>#!/usr/bin/env perl6raku
use v6;
react whenever Supply.from-list(@*ARGS).start({ .&sleep // +$_ }).flat { .say }</lang>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.