subseq-as ( from to seq exemplar -- subseq )
Factor handbook > The language > Collections > Sequence operations > Subsequences and slices

Prev:subseq ( from to seq -- subseq )
Next:head ( seq n -- headseq )


Vocabulary
sequences

Inputs and outputs
froma non-negative integer
toa non-negative integer
seqa sequence
exemplara sequence
subseqa new sequence


Word description
Outputs a new sequence consisting of all elements starting from and including from, and up to but not including to of type exemplar.

Errors
Throws an error if from or to is out of bounds.

Definition