Skip to content

Instantly share code, notes, and snippets.

@andymatuschak
Created June 26, 2010 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andymatuschak/454390 to your computer and use it in GitHub Desktop.
Save andymatuschak/454390 to your computer and use it in GitHub Desktop.
qsort [] = []
qsort (x:xs) = qsort less ++ [x] ++ qsort more
where less = filter (<x) xs
more = filter (>=x) xs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment