Handbook
Glossary
map-find-index ( ... seq quot: ( ... elt index -- ... result/f ) -- ... result i elt )
Vocabulary
sequences
.
extras
Inputs
seq
a
sequence
quot
a
quotation
Outputs
result
an
object
i
an
integer
elt
an
object
Word description
A version of
map-find
where the index of the found element, if any, is returned.
Definition
USING:
sequences
sequences.extras.private
;
IN:
sequences.extras
:
map-find-index
( ... seq quot: ( ... elt index -- ... result/f ) -- ... result i elt )
[
find-index
]
(map-find-index)
;
inline