I cannot find any information on a high order function that would do this. I found a link to cadd several places, but could not find any information in haskell apkell.
I just want to take a list of floats and create another list from it, adding each cumulatively. The original list always starts from scratch. Therefore, 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 that do something, but I cannot imagine how to make this list.
haskell
Derek meyer
source share