Syntax
cumSum(Lst(l)||Seq||Str)
Description
Returns the list (or the sequence or the string) lr where the elements are the cumulative sum of the list l:lr[k]=sum(l[j],j=0..k) (or lr=sum(l[j],j=0..k )$(k=0..size(l)-1)).
Example
cumSum([0,1,2,3,4]) returns [0,1,3,6,10]
cumSum — Discussion