Skip to content

Instantly share code, notes, and snippets.

@drager
Last active March 22, 2016 14:00
Show Gist options
  • Save drager/c41febdfac0883297bfc to your computer and use it in GitHub Desktop.
Save drager/c41febdfac0883297bfc to your computer and use it in GitHub Desktop.
split p [] = ([],[])
split p (x:xs) = if p x then (x : ys, zs)
else (ys, x : zs)
where (ys, zs) = split p xs
isEven :: Int -> Bool
isEven number = number `mod` 2 == 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment