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

Prev:last-index ( obj seq -- n )
Next:subseq-start ( subseq seq -- i )


Vocabulary
sequences

Inputs and outputs
objan object
ia start index
seqa sequence
nan index


Word description
Outputs the index of the last element in the sequence equal to obj, traversing the sequence backwards starting from the ith element and finishing at the first. If no element is found, outputs f.

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

Definition