Quick - п
- While Loop (Collect)
Tags: boolean
Arity: same
The resulting link's arity is the same as the consumed link's arity. Note that the arity refers to that of the resulting link, not the number of links this quick consumes.
Functionality
Repeat a link while a condition is true, collecting intermediate results (like ¿
(While Loop)).
Details
If the link is dyadic, after the first iteration, the previous result is the left argument and the result before that (the left argument is the initial result) is the right argument. The result includes the value that makes the condition false.
Syntax
<link><condition>п
- a link whose arity is the maximum of<link>
's and<condition>
's, which applies the link as long as the condition is true