Skip to content

Instantly share code, notes, and snippets.

@Nucleareal
Created August 2, 2014 14:43
Show Gist options
  • Save Nucleareal/d63f812291b54cb8508d to your computer and use it in GitHub Desktop.
Save Nucleareal/d63f812291b54cb8508d to your computer and use it in GitHub Desktop.
import Data.List
main = interact $ unwords . (map show) . sort . filter (>=0) . (map read) . words
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment