Skip to content

FoldList

Like Fold, but returns a list of intermediate results.

$ wo 'FoldList[Plus, 0, {1, 2, 3}]'
{0, 1, 3, 6}