nappend ( n -- seq )
Generalized sequence words

Prev:set-firstn ( n -- quot )
Next:nappend-as ( n exemplar -- seq )


Vocabulary
sequences.generalizations

Inputs and outputs
nan integer
seqa sequence


Word description
Outputs a new sequence consisting of the elements of the top n sequences from the datastack in turn.

Errors
Throws an error if any of the sequences contain elements that are not permitted in the sequence type of the first sequence.

Examples
USING: math prettyprint sequences.generalizations ; { 1 2 } { 3 4 } { 5 6 } { 7 8 } 4 nappend .
{ 1 2 3 4 5 6 7 8 }


See also
nappend-as

Definition