nappend-as ( n exemplar -- seq )
Generalized sequence words

Prev:nappend ( n -- seq )
Next:neach ( seq... quot n -- )


Vocabulary
sequences.generalizations

Inputs
nan integer
exemplara sequence


Outputs
seqa sequence


Word description
Outputs a new sequence of type exemplar 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 V{ } nappend-as .
V{ 1 2 3 4 5 6 7 8 }


See also
nappend

Definition