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

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


Vocabulary
sequences

Inputs
objan object
seqa sequence


Outputs
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