20 Jan
2013
20 Jan
'13
4:24 a.m.
On Saturday, 19. January 2013 22:38:09 Paul Higham wrote:
Looking at the antiderivative the same way we can write
s = [Int] -> [Int] s [] = [] s (f:fs) = scanl (+) f fs
But your function has a well definied starting point. This won't work anymore if the function is defined for all negative Ints, right? -- Martin