sumAllDigits :: [ Int ] -> Int
sumAllDigits (x:xs)
|(x:xs) == [] = 0
|x >= 10 = sumDigits x + sumAllDigits xs
|x< 10 = x + sumAllDigits xs
报告:
*Recursion> sumAllDigits [22,33] *** 例外:Recursion.hs:(76,1)-(79,34):函数 sumAllDigits 中的非详尽模式