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

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


Vocabulary
sequences

Inputs
seq1a sequence
seq2a sequence
seq3a sequence
exemplara sequence


Outputs
newseqa sequence


Word description
Outputs a new sequence with seq3 inserted between seq1 and seq2 of the same type as exemplar.

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


See also
glue

Definition


: glue-as ( seq1 seq2 seq3 exemplar -- newseq )
swapd 3append-as ; inline