Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

FoldList

Usage

FoldList[f, x, {a, b, ... }] gives {x, f[x, a], f[f[x, a], b], ... }.


Notes

• Example: FoldList[f, x,  a, b, c ]LongRightArrow .
FoldList[Plus, 0, list] generates cumulative sums of the elements in list.
• Example: FoldList[Plus, 0,  a, b, c ]LongRightArrow .
• With a length  list, FoldList generates a list of length  .
• The head of list in FoldList[f, x, list] need not be List.
• See Section 2.2.2.
• New in Version 2.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: