> 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.
signature.asc
Description: Digital signature
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
