Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
slice-error ( from to seq reason -- * )
Vocabulary
sequences
Inputs and outputs
str
a reason
Word description
Throws a
slice-error
.
Error description
Thrown by
<slice>
if one of the following invalid conditions holds:
•
The start index is negative
•
The end index is greater than the length of the sequence
•
The start index is greater than the end index
Definition
IN:
sequences
TUPLE:
slice-error
{
from
read-only
}
{
to
read-only
}
{
seq
read-only
}
{
reason
read-only
}
;
USING:
kernel
;
IN:
sequences
:
slice-error
( from to seq reason -- * )
\
slice-error
boa
throw
;
Methods
USING:
kernel
sequences
summary
;
M:
slice-error
summary
drop
"Cannot create slice"
;