Quick - С
- Repeat N Times (Collect)
Tags: number
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
Apply a link N times, collecting intermediate results (like ¡
(N Times)).
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. See ¡
(N Times) for more details and examples.
Syntax
<link><iterations>С
- a link whose arity is the maximum of<link>
's and<iterations>
's, which applies the link N times<link>С
- a link of the same arity as<link>
, which applies the link N times, where N is the last command line argument, or if none are present, the next line of input from STDIN