Name: Fold - result of repeatedly applying a function with two argument

Synopsis:

x [a b c ...] f Select -&gt; f( ...n times... f(f(f(x,a),b),c) ...)


Examples:

1 [2 x] Range {mul} Fold 
computes faculty of integer x


Remarks:

Fold is a restricted variant of forall. 
It is implemented to demonstrate the use of forall as a 
functional operator and for compatibility with Mathematica.


Author:

Diesmann


FirstVersion:

9.2.01


SeeAlso:

forall
repeat
FoldList
Nest

Source:

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