Vocabulary
sequences.deep

Inputs
objan object
quota quotation with stack effect ( ... elt -- ... ? )
exemplara sequence


Outputs
seqa 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


: deep-filter-as
( ... obj quot: ( ... elt -- ... ? ) exemplar -- ... seq )
[ selector [ deep-each ] dip ] dip [ like ] when* ; inline
recursive