gives the last element of FoldList[f,x,list].
represents an operator form of Fold that can be applied to expressions.
- You can use Throw to exit from Fold before it is finished.
- Fold[f][list] is equivalent to Fold[f,list].
- Fold[f][x,list] is equivalent to Fold[f,x,list].
Basic Examples (7)
Start from the first element of the list:
Use the operator form of Fold on one argument:
Use the operator form of Fold on two arguments:
Generalizations & Extensions (3)
Properties & Relations (3)
Introduced in 1991
Updated in 2016