Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec addone list x =
- match list with
- |[] -> []
- |(a, b) :: xs -> if (a = x) then ((a, b+1) :: xs) else ((a, b) :: (addone xs x));;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement