firstn ( n -- quot )
Generalized sequence words

Prev:nsequence ( n seq -- quot )
Next:set-firstn ( n -- quot )


Vocabulary
sequences.generalizations

Inputs and outputs
nan integer


Word description
A generalization of first, first2, first3 and first4 that pushes the first n elements of a sequence on the stack.

Examples
Some core words expressed in terms of firstn:
first1 firstn
first22 firstn
first33 firstn
first44 firstn


Definition