Mathematica > Core Language > Functional Programming > Functional Iteration >
Mathematica > Core Language > Procedural Programming > Looping Constructs > Functional Iteration >

NestList

NestList[f, expr, n]
gives a list of the results of applying f to expr 0 through n times.
  • NestList[f, expr, n] gives a list of length n+1.
New in 1
© 2008 Wolfram Research, Inc.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team