Crypt Master wrote:
> [...] 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.