remove-nth! ( n seq -- seq )
Factor handbook » The language » Collections » Sequence operations » Destructive sequence operations

Prev:remove-eq! ( elt seq -- seq )
Next:delete-slice ( from to seq -- )


Vocabulary
sequences

Inputs
na non-negative integer
seqa resizable mutable sequence


Outputs
seqa resizable mutable sequence


Word description
Removes the nth element from the sequence, shifting all other elements down and reducing its length by one.

Notes
The sequence seq MUST be growable. See Resizable sequence implementation.

Side effects
Modifies seq

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

Definition