Name: NestList - gives a list of the results of applying f to x 0 through n times.

Synopsis:

x f n NestList -&gt;  [x, x f,  x f f,..., x f1 ... fn]


Examples:

1 {2 mul} 3 NestList -&gt; [1 2 4 8]


Description:

NestList repeatedly applies f to the supplied argument and returns 
the result als well as all intermediate results in a list. 
Note that f must expect and return exactly one argument.


Parameters:

x - any object to which f can be applied 
f - an executable object.


SeeAlso:

Map
forall

Source:

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