suffix ( seq elt -- newseq )
Factor handbook » The language » Collections » Sequence operations » Adding and removing sequence elements

Prev:prefix ( seq elt -- newseq )
Next:insert-nth ( elt n seq -- seq' )


Vocabulary
sequences

Inputs
seqa sequence
eltan object


Outputs
newseqa sequence


Word description
Outputs a new sequence obtained by adding elt at the end of seq.

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

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


See also
push, push-either, push-when, pop, pop*, prefix, suffix!

Definition