shorten ( n seq -- )


Vocabulary
sequences

Inputs and outputs
nan integer
seqa sequence


Word description
Shortens a Resizable sequence implementation sequence to be n elements long.

Examples
USING: sequences prettyprint kernel ; V{ 1 2 3 4 5 } 3 over shorten .
V{ 1 2 3 }


Definition


Methods