Handbook
Glossary
deep-find ( ... obj quot: ( ... elt -- ... ? ) -- ... elt )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Deep sequence combinators
Prev:
deep-filter ( ... obj quot: ( ... elt -- ... ? ) -- ... seq )
Next:
deep-any? ( ... obj quot: ( ... elt -- ... ? ) -- ... ? )
Vocabulary
sequences
.
deep
Inputs
obj
an
object
quot
a
quotation
with stack effect
( ... elt -- ... ? )
Outputs
elt
an element
Word description
Gets the first sub-node of the object, in preorder, which satisfies the quotation. If nothing satisfies it, it returns
f
.
See also
find
Definition
USING:
kernel
;
IN:
sequences.deep
:
deep-find
( ... obj quot: ( ... elt -- ... ? ) -- ... elt )
(deep-find)
drop
;
inline