Skip to content

Instantly share code, notes, and snippets.

@jmaicher
Created July 11, 2012 09:15
Show Gist options
  • Save jmaicher/3089218 to your computer and use it in GitHub Desktop.
Save jmaicher/3089218 to your computer and use it in GitHub Desktop.
Quicksort in Haskell with intensional defined lists
quicksort [] = []
quicksort (x:xs) =
quicksort [ y | y <- xs, y < x ] ++
[x] ++
quicksort [ y | y <- xs, y >= x ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment