bounds-check? ( n seq -- ? )
Factor handbook » The language » Collections » Sequence operations » Testing sequences

Prev:empty? ( seq -- ? )
Next:member? ( elt seq -- ? )


Vocabulary
sequences

Inputs
nan integer
seqa sequence


Outputs
?a boolean


Word description
Tests if the index is within the bounds of the sequence.

Examples
USING: prettyprint sequences ; 5 { 1 2 3 } bounds-check? .
f


Definition


Methods