Functional Iteration

Long used in its simplest form in mathematics, functional iteration is an elegant way to represent repeated operations. The Wolfram Language's symbolic architecture makes powerful general forms of functional iteration immediately accessible.

ReferenceReference

NestList successively nest a function:

Nest give the result of nesting a function: etc.

NestGraph give the graph of nesting a function

FoldList successively fold in a list of values:

Fold give the result of folding in a list of values: etc.

SequenceFold, SequenceFoldList fold allowing sequences of previous values

FoldPair, FoldPairList give a result and maintain a state at each step (e.g. quotient-remainder)

FixedPoint, FixedPointList nest until a fixed point is reached

NestWhile, NestWhileList nest while a condition is satisfied

TakeWhile take from a list while a condition is satisfied

LengthWhile the length while a condition is satisfied

Translate this page: