Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 3 acc f (a, b) x
- 4 | f x = (x:a, b)
- 5 | otherwise = (a, x:b)
- 6
- 7 splitWith f = foldl (acc f) ([], [])
- 8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement