Handbook
Glossary
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
seq1
a
sequence
seq2
a
sequence
seq3
a
sequence
exemplar
a
sequence
Outputs
newseq
a
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
USING:
kernel
;
IN:
sequences
:
glue-as
( seq1 seq2 seq3 exemplar -- newseq )
swapd
3append-as
;
inline