Advertisement
tinyevil

Untitled

Dec 10th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. bar(n:SortedList)
  2.  
  3. quicksort(x:List)->List
  4. quicksort [] = []
  5. quicksort (cons x xs) = quicksort(filter ((< x) xs)) ++ filter (== x) xs ++ (filter ((> x) xs))
  6.  
  7. foo(a:List)
  8. bar(quicksort(a))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement