Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. quantos :: Int -> [Int] -> Int
  2. quantos x [] = 0
  3. quantos x (y:ys) = if (x == y) then (1 + (quantos x ys))
  4.                  else (quantos x ys)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement