Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 595 Bytes

File metadata and controls

32 lines (18 loc) · 595 Bytes

Nest

Nest(f, expr, n)

starting with expr, iteratively applies f n times and returns the final result.

Examples

>> Nest(f, x, 3)
f(f(f(x)))
 
>> Nest((1+#) ^ 2 &, x, 2)
(1+(1+x)^2)^2

Related terms

FixedPoint, FixedPointList, NestWhile

Implementation status

  • ✅ - full supported

Github