Name: FoldList - repeatedly apply a function with two parameter

Synopsis:

x [a b c ...] f FoldList -&gt; [f(x,a) f(f(x,a),b) ...]


Examples:

0 [1 2 3 4] {add} FoldList gives the cumulative sums of the list. 
0 [1 2 3 4] {add} FoldList -&gt; [0 1 3 6 10]


Remarks:

This function is Mathematica compatible.


SeeAlso:

NestList
Fold
Map
forall

Source:

/var/www/debian/nest/nest-simulator-2.20.0/lib/sli/mathematica.sli
