I cant seem to find any information on a high order function that would do this. I found a reference to cadd a few places but could not find any information in a haskell api.

I just simply want to take a list of floats, and create another list from it by cumulatively adding each. The original list will always start with zero. So if I had a list of [0,2,5,9] i would get a list of [0,2,7,16].

accumulateTime :: [Float] -> [Float]
accumulateTime (x:xs) = cadd????

i have other parts of this code doing things but i cant seem how to make this list.

Edit
Report