Skip to content

Instantly share code, notes, and snippets.

@chestergrant
Created April 10, 2011 11:08
Show Gist options
  • Save chestergrant/912255 to your computer and use it in GitHub Desktop.
Save chestergrant/912255 to your computer and use it in GitHub Desktop.
QuickSort - Haskell
--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