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

Prev:filter! ( ... seq quot: ( ... elt -- ... ? ) -- ... seq )
Next:append! ( seq1 seq2 -- seq1 )


Vocabulary
sequences

Inputs and outputs
seqa sequence
eltan object


Word description
Modifiers a sequence in-place by adding elt to the end of seq. Outputs seq.

Errors
Throws an error if the type of elt is not permitted in sequences of the same class as seq.

Examples
USING: prettyprint sequences ; V{ 1 2 3 } 4 suffix! .
V{ 1 2 3 4 }


See also
push, push-either, push-if, pop, pop*, prefix, suffix

Definition