append-as ( seq1 seq2 exemplar -- newseq )
Factor handbook » The language » Collections » Sequence operations » Appending sequences

Prev:append ( seq1 seq2 -- newseq )
Next:prepend ( seq1 seq2 -- newseq )


Vocabulary
sequences

Inputs
seq1a sequence
seq2a sequence
exemplara sequence


Outputs
newseqa sequence


Word description
Outputs a new sequence of the same type as exemplar consisting of the elements of seq1 followed by seq2.

Errors
Throws an error if seq1 or seq2 contain elements not permitted in sequences of the same class as exemplar.

Examples
USING: prettyprint sequences ; { 1 2 } B{ 3 4 } B{ } append-as .
B{ 1 2 3 4 }

USING: prettyprint sequences strings ; "go" "ing" SBUF" " append-as .
SBUF" going"


See also
append, append!, 3append, 3append-as, push-all

Definition