NestWhile
applies a function
f
repeatedly on an expressionexpr
, until applyingtest
on the result no longer yieldsTrue
.
supplies the last
m
results totest
(default value:1
).
supplies all results gained so far to
test
.
Examples
Divide by 2 until the result is no longer an integer:
Related terms
FixedPoint, FixedPointList, Nest
Implementation status
- ✅ - full supported