Handbook
Glossary
find-last-index-from ( ... n seq quot: ( ... elt i -- ... ? ) -- ... i elt )
Vocabulary
sequences
.
extras
Inputs
n
an
integer
seq
a
sequence
quot
a
quotation
Outputs
i
an
integer
elt
an
object
Word description
Similar to
find-from
, except
quot
is given the index of each element, and the index of the found element is pushed along with the found element.
Definition
USING:
kernel
math
sequences.private
;
IN:
sequences.extras
:
find-last-index-from
( ... n seq quot: ( ... elt i -- ... ? ) -- ... i elt )
[
[
sequence-index-operator-last
find-last-integer
]
keepd
index/element
]
curry
bounds-check-call
;
inline