acumular :: [Int] -> Intacumular [] = 0acumular (x:xs) = x + acumular xs main = do print( acumular [5,6,7] )
Standard input is empty
18
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!