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
seqa resizable mutable sequence.
eltan object


Outputs
seqa resizable mutable sequence.


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

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

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-when, pop, pop*, prefix, suffix

Definition