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

Documentation / Mathematica / Built-in Functions / Programming / Functional Programming /

Fold

FilledSmallSquare Fold[f, x, list] gives the last element of FoldList[f, x, list].

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

FilledSmallSquare You can use Throw to exit from Fold before it is finished.

FilledSmallSquare See notes for FoldList.

FilledSmallSquare See Section 2.2.2.

FilledSmallSquare See also: Nest.

FilledSmallSquare New in Version 2; modified in 3.

Further Examples



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


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