←
FixedPointList
→
FoldList
/
Reference of Built-in Symbols
/
Functional Programming
/
Iteratively Applying Functions
/
Fold
/
Fold
WMA link
Fold
[
f
,
x
,
list
]
returns the result of iteratively applying the binary
operator
f
to each element of
list
, starting with
x
.
Fold
[
f
,
list
]
is equivalent to
Fold[
f
, First[
list
], Rest[
list
]]
.
Fold[Plus, 5, {1, 1, 1}]
Fold[f, 5, {1, 2, 3}]
←
FixedPointList
→
FoldList