Handbook
Glossary
deep-filter ( ... obj quot: ( ... elt -- ... ? ) -- ... seq )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Deep sequence combinators
Prev:
deep-map ( ... obj quot: ( ... elt -- ... elt' ) -- ... newobj )
Next:
deep-find ( ... obj quot: ( ... elt -- ... ? ) -- ... elt )
Vocabulary
sequences
.
deep
Inputs
obj
an
object
quot
a
quotation
with stack effect
( ... elt -- ... ? )
Outputs
seq
a
sequence
Word description
Creates a sequence of sub-nodes in the object which satisfy the given quotation, in preorder. This includes the object itself, if it passes the quotation.
See also
filter
Definition
USING:
kernel
;
IN:
sequences.deep
:
deep-filter
( ... obj quot: ( ... elt -- ... ? ) -- ... seq )
over
[
branch?
]
1guard
deep-filter-as
;
inline