short ( seq n -- seq n' )


Vocabulary
sequences

Inputs and outputs
seqa sequence
nan integer
n'an integer


Word description
Returns the input sequence and its length or n, whichever is less.

Examples
USING: sequences kernel prettyprint ; "abcd" 3 short [ . ] bi@
"abcd" 3


Definition