|
Fold
Fold[f, x, list] gives the last element of FoldList[f, x, list].
Example: Fold[f, x, a, b, c ]  .
You can use Throw to exit from Fold before it is finished.
See notes for FoldList.
See The Mathematica Book: Section 2.2.2.
See also: Nest.
Further Examples
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | |