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

Prev:index ( obj seq -- n )
Next:last-index ( obj seq -- n )


Vocabulary
sequences

Inputs
objan object
ia start index
seqa sequence


Outputs
nan index


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

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

Definition