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

Fold

Usage

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


Notes

• Example: Fold[f, x,  a, b, c ]LongRightArrow .
• You can use Throw to exit from Fold before it is finished.
• See notes for FoldList.
• See Section 2.2.2.
• See also: Nest.
• New in Version 2; modified in 3.


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: