Quick - ¡ - Repeat N Times

Characters: ¡

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.

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. For example, 1 ,1¡ 2 returns [1, 2] as expected. Then, 1 ,2¡ 2 returns [[1, 2], 1] since the left argument is the previous result and the right argument is the result before that. Then, 1 ,3¡ 2 is [[[1, 2], 1], [1, 2]], etc.

Syntax