index ( obj seq -- n )
Factor handbook > The language > Collections > Sequence operations > Searching sequences

Next:index-from ( obj i seq -- n )


Vocabulary
sequences

Inputs and outputs
objan object
seqa sequence
nan index


Word description
Outputs the index of the first element in the sequence equal to obj. If no element is found, outputs f.

See also
index-from, last-index, last-index-from, sorted-index

Definition