Mathematica 9 is now available

FoldComposeList

FoldList

FilledSmallSquareFoldList[f, x, a, b, ... ] gives x, f[x, a], f[f[x, a], b], ... .

FilledSmallSquare Example: FoldList[f, x, a, b, c] LongRightArrow.

FilledSmallSquareFoldList[Plus, 0, list] generates cumulative sums of the elements in list.

FilledSmallSquare Example: FoldList[Plus, 0, a, b, c] LongRightArrow.

FilledSmallSquare With a length list, FoldList generates a list of length .

FilledSmallSquare The head of list in FoldList[f, x, list] need not be List.

FilledSmallSquare See The Mathematica Book: Section 2.2.2.

FilledSmallSquare See also: Fold, NestList, ComposeList, Partition, MapIndexed.

Further Examples

FoldComposeList



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.