While
Evaluates an expression repeatedly while a test stays true.
Wolfram Language
WhileWhile(test)Re-evaluates until it reads other than .While(test, body)Evaluates each time (re-evaluated first) reads ; stops as soon as it doesn't.Typed signatures
| Type | Package | Applies |
|---|---|---|
(any, any?) -> any | combinatorics | always |
Details
- Always returns , like Do.
- Capped at 4096 iterations, past which the loop simply stops — Wolfram's own default cap, $IterationLimit, is much larger and configurable; this one is fixed.
Examples
About
| Examples | 1 |
|---|---|
| Crosswalk | Wolfram Language |