FoldList
Usage
• FoldList[f, x, {a, b, ... }] gives {x, f[x, a], f[f[x, a], b], ... }.
Notes
• FoldList[Plus, 0, list] generates cumulative sums of the elements in list. • With a length  list, FoldList generates a list of length  . • The head of list in FoldList[f, x, list] need not be List. • New in Version 2.
|