delete-all ( seq -- )
Factor handbook > The language > Collections > Sequence operations > Destructive sequence operations

Prev:delete-slice ( from to seq -- )
Next:filter! ( ... seq quot: ( ... elt -- ... ? ) -- ... seq )


Vocabulary
sequences

Inputs and outputs
seqa resizable sequence


Word description
Resizes the sequence to zero length, removing all elements. Not all sequences are resizable.

Errors
Throws an error if the sequence is not resizable.

Side effects
Modifies seq

Definition