[Haskell-cafe] cumulative sum

Matthias Fischmann fis at wiwi.hu-berlin.de
Mon Oct 2 12:37:16 EDT 2006



> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20061002/4e54ef6c/attachment.bin


More information about the Haskell-Cafe mailing list