Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. contains :: Int -> Int -> Bool
  2. contains 0 n = False
  3. contains x n = if x `mod 10 == n then True else contains (x `div` 10) n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement