remove! ( elt seq -- seq )
Factor handbook > The language > Collections > Sequence operations > Destructive sequence operations

Prev:change-nth ( ..a i seq quot: ( ..a elt -- ..b newelt ) -- ..b )
Next:remove-eq! ( elt seq -- seq )


Vocabulary
sequences

Inputs and outputs
eltan object
seqa resizable mutable sequence


Word description
Removes all elements equal to elt from seq and returns seq.

Notes
This word uses equality comparison (=).

Side effects
Modifies seq

See also
remove, remove-nth, remove-eq, remove-eq!, remove-nth!

Definition