Handbook
Glossary
surround ( seq1 seq2 seq3 -- newseq )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Appending sequences
Prev:
3append-as ( seq1 seq2 seq3 exemplar -- newseq )
Next:
surround-as ( seq1 seq2 seq3 exemplar -- newseq )
Vocabulary
sequences
Inputs
seq1
a
sequence
seq2
a
sequence
seq3
a
sequence
Outputs
newseq
a
sequence
Word description
Outputs a new sequence with
seq1
inserted between
seq2
and
seq3
.
Examples
USING: sequences prettyprint ; "sssssh" "(" ")" surround .
"(sssssh)"
See also
surround-as
Definition
USING:
kernel
;
IN:
sequences
:
surround
( seq1 seq2 seq3 -- newseq )
over
surround-as
;
inline