
2 Oct
2006
2 Oct
'06
12:37 p.m.
try scanl (+) 0 for the cumulative sum
and it is probably worth pointing out once more that (as i have learned only recently :-) Hoogle can help you even quicker than this list with questions like these: scanl is the fifth answer if you ask for a -> [a] -> [a]. also, the url is easy to remember: http://www.haskell.org/hoogle/ cheers, m.