glue ( seq1 seq2 seq3 -- newseq )
Factor handbook > The language > Collections > Sequence operations > Appending sequences

Prev:surround ( seq1 seq2 seq3 -- newseq )
Next:concat ( seq -- newseq )


Vocabulary
sequences

Inputs and outputs
seq1a sequence
seq2a sequence
seq3a sequence
newseqa sequence


Word description
Outputs a new sequence with seq3 inserted between seq1 and seq2.

Examples
USING: sequences prettyprint ; "a" "b" "," glue .
"a,b"


Definition


: glue ( seq1 seq2 seq3 -- newseq ) swap 3append ; inline