loop (Flow control)

Executes body repeatedly while it returns TRUE.

Arguments

body
is the callable to execute, having the following stack notation:

( ... -- ... condition)

Return values

None

Example

sqrt2: 2.0; [ 2.0 sqrt2 / sqrt2 + 0.5 * !sqrt2 sqrt2 sqrt2 * 2.0 - abs 0.000001 > ] loop sqrt2 print
Output:
1.414214