Handbook
Glossary
append! ( seq1 seq2 -- seq1 )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Destructive sequence operations
Prev:
suffix! ( seq elt -- seq )
Next:
reverse! ( seq -- seq )
Vocabulary
sequences
Inputs
seq1
a resizable mutable sequence.
seq2
a
sequence
Outputs
seq1
a resizable mutable sequence.
Word description
Modifiers
seq1
in-place by adding the elements from
seq2
to the end and outputs
seq1
.
Notes
The sequence
seq1
MUST be growable. See
Resizable sequence implementation
.
Examples
USING: prettyprint sequences ; V{ 1 2 3 } { 4 5 6 } append! .
V{ 1 2 3 4 5 6 }
See also
append
,
append-as
,
3append
,
3append-as
,
push-all
Definition
USING:
kernel
;
IN:
sequences
:
append!
( seq1 seq2 -- seq1 )
over
push-all
;
inline