find-index-from ( ... n seq quot: ( ... elt i -- ... ? ) -- ... i elt )


Vocabulary
sequences

Inputs and outputs
na starting index
seqa sequence
quota quotation with stack effect ( ... elt i -- ... ? )
ithe index of the first match or f
eltthe first matching element or f


Word description
A varient of find-from where the quotation takes both an element and its index.

Definition


: find-index-from
( ... n seq quot: ( ... elt i -- ... ? ) -- ... i elt )
[ (find-integer) ] (find-index-from) ; inline