[]→⊤, []→boolean, []→⊤
Source: /avail/Avail/Foundation/Control Structures
Categories: Control Structures, Loops
Conditional loop with alternation.
| Position | Name | Type | Description | |
|---|---|---|---|---|
| Parameters | ||||
| 1 | action | []→⊤ | The function to apply repeatedly while predicate answers true. Never invoked if predicate never answers true. | |
| 2 | predicate | []→boolean | The function that guards repeated application of action. | |
| 3 | between | []→⊤ | The function to apply between applications of action. | |
| Returns | ⊤ | |||