?lastn ( seq n -- elts... )


Vocabulary
sequences.generalizations

Inputs
seqa sequence
nan integer


Outputs
elts...n elements on the datastack


Word description
A generalization of ?last that pushes the last n elements of a sequence on the stack, or f if the sequence is shorter than the requested number of elements.

Examples
Some core words expressed in terms of ?lastn:
?last1 ?lastn


Definition