Handbook
Glossary
deep-filter-as ( ... obj quot: ( ... elt -- ... ? ) exemplar -- ... seq )
Vocabulary
sequences
.
deep
Inputs
obj
an
object
quot
a
quotation
with stack effect
( ... elt -- ... ? )
exemplar
a
sequence
Outputs
seq
a
sequence
Word description
Creates a sequence (of the same type as
exemplar
) of sub-nodes in the object which satisfy the given quotation, in preorder. This includes the object itself, if it passes the quotation.
Definition
USING:
kernel
sequences
;
IN:
sequences.deep
:
deep-filter-as
( ... obj quot: ( ... elt -- ... ? ) exemplar -- ... seq )
[
selector
[
deep-each
]
dip
]
dip
[
like
]
when*
;
inline
recursive