VocabularysequencesInputs and outputs| n | a starting index |
| seq | a sequence |
| quot | a quotation with stack effect ( ... elt -- ... ? ) |
| i | the index of the first match, or f |
| elt | the first matching element, or f |
Word descriptionApplies the quotation to each element of the sequence in turn, until it outputs a true value or the end of the sequence is reached. If the quotation yields a true value for some sequence element, the word outputs the element index and the element itself. Otherwise, the word outputs an index of
f and
f as the element.
See alsofind,
find-last,
find-last,
find-last-from,
searchDefinition