

NestList

Examples
open all close allBasic Examples (3)
Create a list by applying f to x from 0 to 4 times:
Repeatedly apply Cos to to a number:
Scope (4)
Generalizations & Extensions (1)
Applications (15)
Properties & Relations (5)
Nest gives the last element of NestList:
Nesting zero times simply returns to the original argument:
FixedPointList goes on until the result no longer changes:
NestWhileList goes on while a condition is true:
FoldList automatically inserts second arguments from a list:
Tech Notes
Related Links
- An Elementary Introduction to the Wolfram Language : Applying Functions Repeatedly
- An Elementary Introduction to the Wolfram Language : More about Pure Functions
- An Elementary Introduction to the Wolfram Language : Rearranging Lists
- An Elementary Introduction to the Wolfram Language : More about Patterns
- An Elementary Introduction to the Wolfram Language : String Patterns and Templates
- NKS|Online (A New Kind of Science)
History
Introduced in 1988 (1.0) | Updated in 2024 (14.1)
Text
Wolfram Research (1988), NestList, Wolfram Language function, https://reference.wolfram.com/language/ref/NestList.html (updated 2024).
CMS
Wolfram Language. 1988. "NestList." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/NestList.html.
APA
Wolfram Language. (1988). NestList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NestList.html
BibTeX
@misc{reference.wolfram_2025_nestlist, author="Wolfram Research", title="{NestList}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/NestList.html}", note=[Accessed: 05-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_nestlist, organization={Wolfram Research}, title={NestList}, year={2024}, url={https://reference.wolfram.com/language/ref/NestList.html}, note=[Accessed: 05-August-2025]}