firstn ( n -- quot )
Generalized sequence words

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


Vocabulary
sequences.generalizations

Inputs
nan integer


Outputs
None

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