VocabularysequencesInputsfrom | a non-negative integer |
to | a non-negative integer |
seq | a sequence |
OutputsWord descriptionOutputs a new virtual sequence sharing storage with the subrange of elements in
seq with indices starting from and including
from, and up to but not including
to.
ErrorsThrows an error if
from or
to are out of bounds.
NotesTaking the slice of a slice outputs a slice of the underlying sequence, instead of a slice of a slice. This means that you cannot assume that the
from and
to slots of the resulting slice will be equal to the values you passed to
<slice>.
See alsosubseqDefinition