Quick - # - nfind

Characters: #

Tags: array

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

nfind; get the first N integers satisfying some condition.

Details

The arity of the resulting link is the maximum of its consumed links' arities. The initial value is the left argument if the link is at least monadic, and 0 otherwise. Then, starting from that value, if it satisfies the specified condition, add it to a list. Then, increment the value. Once N matches have been found, return the array of matches.

Syntax