[...] Surely this is a pattern which has been abstracted ? I feel I have missed the obvious here.
There is a prelude function "scanl1" for this kind of pattern, so you could write:
incrementalSum = scanl1 (+)
Cheers, S.
_______________________________________________ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe
