concat ( seq -- newseq )
Factor handbook > The language > Collections > Sequence operations > Appending sequences

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


Vocabulary
sequences

Inputs and outputs
seqa sequence
newseqa sequence


Word description
Concatenates a sequence of sequences together into one sequence. If seq is empty, outputs { }, otherwise the resulting sequence is of the same class as the first element of seq.

Errors
Throws an error if one of the sequences in seq contains elements not permitted in sequences of the same class as the first element of seq.

See also
join, join-as, concat-as

Definition