Guest User

Untitled

a guest
Jan 12th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. qs _ [] = []
  2. qs p (h:xs) = qs p l ++ [h] ++ qs p g
  3. where
  4. l = filter (p h) xs
  5. g = filter (not . p h) xs
Add Comment
Please, Sign In to add comment