Guest User

Untitled

a guest
Dec 16th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. verify_even :: [Int] -> [Int]
  2. verify_even (a:as) = if (a `mod` 2 == 0)
  3. then a : verify_even as
  4. else verify_even as
  5.  
  6. verify_odd :: [Int] -> [Int]
  7. verify_odd (a:as) = if (a `mod`2 /= 0)
  8. then a : verify_odd as
  9. else verify_odd as
  10.  
  11. func :: ([Int] -> [Int]) -> [Int] -> [Int]
  12. --func f [] = []
  13. func f (a:as) = f (a:as)
Add Comment
Please, Sign In to add comment