$ coffee quicksleepsort.coffee 3701 45 292 9 324 45 23 123 1343
9
23
45
45
123
292
324
1343
3701
-
-
Save satyr/983385 to your computer and use it in GitHub Desktop.
quick sleep sort
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sleepsort = (list, callback = console.log) -> | |
setTimeout callback, i, i for i in list | |
undefined | |
sleepsort process.argv.slice 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment