DocumentationMathematicaBuilt-in FunctionsProgrammingFunctional Programming
Nest[f, expr, n] gives an expression with f applied n times to expr.
Example: Nest[f, x, 3] .
You can use Throw to exit from Nest before it is finished.
See Section 2.2.2.
See also: NestList, NestWhile, Fold, Function, FixedPoint, Do.
New in Version 1; modified in 3.