FoldList - repeatedly apply a function with two parameter
x [a b c ...] f FoldList -> [f(x,a) f(f(x,a),b) ...]
0 [1 2 3 4] {add} FoldList gives the cumulative sums of the list.
0 [1 2 3 4] {add} FoldList -> [0 1 3 6 10]
This function is Mathematica compatible.
/home/abuild/rpmbuild/BUILD/nest-2.20.git/lib/sli/mathematica.sli