VocabularysequencesInputsOutputsWord descriptionOutputs a new sequence consisting of the last
n elements of the input sequence.
ExamplesUSING: sequences prettyprint ;
{ 1 2 3 4 5 6 7 } 2 tail* .
{ 6 7 }
When a sequence may not have enough elements:
USING: sequences prettyprint ;
{ 1 2 } 5 index-or-length tail* .
{ 1 2 }
ErrorsThrows an error if the index is out of bounds.
See alsotail,
tail-slice,
tail-slice*Definition