remove-eq! ( elt seq -- seq )
Factor documentation > Factor handbook > The language > Collections > Sequence operations > Destructive sequence operations
Prev:remove! ( elt seq -- seq )
Next:remove-nth! ( n seq -- seq )


Vocabulary
sequences

Inputs and outputs
eltan object
seqa resizable mutable sequence


Word description
Outputs a new sequence containing all elements of the input sequence except the given element.

Notes
This word uses identity comparison (eq?).

Side effects
Modifies seq

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

Definition
USING: kernel ;

IN: sequences

: remove-eq! ( elt seq -- seq ) [ eq? not ] with filter! ;