Vocabulary
sequences

Inputs
seqa sequence
quota quotation with stack effect ( ... elt -- ... ? )


Outputs
ithe index of the first match or f
eltthe first matching element or f


Word description
A simpler variant of find-last-from where the starting index is one less than the length of the sequence.

See also
find, find-from, find-last-from, search

Definition


: find-last
( ... seq quot: ( ... elt -- ... ? ) -- ... i elt )
[ [ 1 - ] dip find-last-integer ] (find) ; inline