WLJS LogoWLJS Notebook

Nest

Nest[f, expr, n] gives an expression with f applied n times to expr.

Examples

Apply a function 3 times:

Nest[f, x, 3]
(* f[f[f[x]]] *)

Practical example:

Nest[Sqrt, 256, 3]
(* 2. *)

Please visit the official Wolfram Language Reference for more details.

On this page