Skip to content

Instantly share code, notes, and snippets.

@rangalo
Created August 22, 2010 11:45
Show Gist options
  • Select an option

  • Save rangalo/543679 to your computer and use it in GitHub Desktop.

Select an option

Save rangalo/543679 to your computer and use it in GitHub Desktop.
quicksort haskell
qsort[] = []
qsort(x:xs) = qsort(filter (< x) xs) ++ [x] ++ qsort(filter (>= x) xs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment