Vocabulary
sequences.deep

Inputs
objan object
identityan object
quota quotation with stack effect ( ... prev elt -- ... next )


Outputs
resultthe final result


Word description
Execute a quotation on each nested element of an object and its children, in preorder. The first iteration is called with
identity

and the first element. Subsequence iterations are called with the result of the previous iteration and the next element.

See also
reduce

Definition


: deep-reduce
( ... obj identity quot: ( ... prev elt -- ... next ) -- ... result )
swapd deep-each ; inline