Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Applying Functions to Lists >

FoldList

FoldList[f, x, {a, b, ...}]
gives {x, f[x, a], f[f[x, a], b], ...}.
  • FoldList[Plus, 0, list] generates cumulative sums of the elements in list.
  • With a length n list, FoldList generates a list of length n+1.  »
New in 2
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team