Skip to content

Instantly share code, notes, and snippets.

@olof
Forked from davorb/quicksort.hs
Created March 24, 2012 23:43
Show Gist options
  • Save olof/2189154 to your computer and use it in GitHub Desktop.
Save olof/2189154 to your computer and use it in GitHub Desktop.
qsort1([]) -> [];
qsort1([H|T]) -> qsort1([X||X<-T,X<H])++[H]++qsort1([X||X<-T,X>=H]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment