Guest User

Untitled

a guest
Apr 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. splitDigits :: String -> [Int]
  2. splitDigits = map digitToInt
  3.  
  4. addNum :: String -> Int
  5. addNum = foldl' (+) 0 . splitDigits
Add Comment
Please, Sign In to add comment