Advertisement
Guest User

quicksort en 4 lineas

a guest
Oct 10th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wtf [] = []
  2. wtf (x:xs) = wtf a ++ [x] ++ wtf y
  3.     where
  4.         a = fst b
  5.         y = snd b
  6.         b = partition (<x) (xs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement