quicksort [] = [] quicksort (p:xs) = quicksort small ++ mid ++ quicksort large where small = [y | y<-xs, y<p] mid = [y | y<-xs, y==p] ++ [p] large = [y | y<-xs, y>p]( ok what's next )
Page Summary
Style Credit
- Style: Neutral Good for Practicality by
Expand Cut Tags
No cut tags