bounds-error ( index seq -- * ) - Factor Documentation

bounds-error ( index seq -- * )


Vocabulary
sequences

Inputs
seq a sequence


Outputs
None

Word description
Throws a bounds-error .

Error description
Thrown by nth , set-nth and set-length if the given index lies beyond the bounds of the sequence.

Definition
IN: sequences

ERROR: bounds-error index seq ;


Methods
USING: kernel sequences summary ;

M: bounds-error summary drop "Sequence index out of bounds" ;

AltStyle によって変換されたページ (->オリジナル) /