Write Recursive Haskell Function Cannot Use Existing Functions Following Write Function Cu Q37117258

Write arecursive Haskell function (you cannot use existing functions) todo the following:

Write a functioncumulativeSum that takes a list of Int and returns an int list ofthe partial sums of the numbers in the list. For example:
cumulativeSum [] -> []

cumulativeSum [12, 27,13] -> [12,39,52]


Solution


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.