←
FoldList
→
NestList
/
Reference of Built-in Symbols
/
Functional Programming
/
Iteratively Applying Functions
/
Nest
/
Nest
WMA link
Nest
[
f
,
expr
,
n
]
starting with
expr
, iteratively applies
f
n
times and returns the final result.
Nest[f, x, 3]
Nest[(1+#) ^ 2 &, x, 2]
Nest[Subsuperscript[#,#,#]&,0,5]
←
FoldList
→
NestList