new-resizable ( len seq -- newseq )
Factor handbook > The language > Collections > Sequence operations > Sequence protocol

Prev:new-sequence ( len seq -- newseq )


Vocabulary
sequences

Inputs and outputs
lena non-negative integer
seqa sequence
newseqa resizable mutable sequence


Generic word contract
Outputs a resizable mutable sequence with an initial capacity of len elements and zero length, which can hold the elements of seq.

Examples
USING: prettyprint sequences ; 300 V{ } new-resizable .
V{ }

USING: prettyprint sequences ; 300 SBUF" " new-resizable .
SBUF" "


Definition


Methods