VocabularysequencesInputs and outputs| from | a non-negative integer |
| to | a non-negative integer |
| seq | a sequence |
| slice | a slice |
Word descriptionOutputs a new virtual sequence sharing storage with the subrange of elements in
seq with indices starting from and including
m, and up to but not including
n.
ErrorsThrows an error if
m or
n is 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