This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Functional Programming /

NestList

FilledSmallSquare NestList[f, expr, n] gives a list of the results of applying f to expr 0 through n times.

FilledSmallSquare Example: NestList[f, x, 3] LongRightArrow.

FilledSmallSquare NestList[f, expr, n] gives a list of length n + 1.

FilledSmallSquare See Section 2.2.2.

FilledSmallSquare See also: Nest, NestWhileList, FoldList, ComposeList.

FilledSmallSquare New in Version 1.

Further Examples