Skip to content

Instantly share code, notes, and snippets.

@josejuan
Created July 18, 2012 10:04
Show Gist options
  • Select an option

  • Save josejuan/3135367 to your computer and use it in GitHub Desktop.

Select an option

Save josejuan/3135367 to your computer and use it in GitHub Desktop.
qsort
qsort (p:xs) = qsort [x | x<-xs, x<p] ++ [p] ++ qsort [x | x<-xs, x>=p]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment