Skip to content

Instantly share code, notes, and snippets.

@hans
Forked from chestergrant/Quicksort_Haskell
Created April 10, 2011 13:41
Show Gist options
  • Save hans/912352 to your computer and use it in GitHub Desktop.
Save hans/912352 to your computer and use it in GitHub Desktop.
--Got code from: http://www.haskell.org/haskellwiki/Why_Haskell_matters
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