find-all ( ... seq quot: ( ... elt -- ... ? ) -- ... elts )


Vocabulary
sequences.extras

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


Outputs
eltsthe indices of the matching elements


Word description
Similar to find, but finds all of the indices and elements that match the provided quotation, not just the first.

Notes
The result is provided as an array of arrays, whose first value is the index and whose second value is the element.

Definition


: find-all
( ... seq quot: ( ... elt -- ... ? ) -- ... elts )
[ <enumerated> ] dip filter-values ; inline