slurp-tree ( tree quot: ( ... entry -- ... ) getter: ( tree -- node ) -- ... )


Vocabulary
trees.private

Inputs
treean object
quota quotation with stack effect ( ... entry -- ... )
gettera quotation with stack effect ( tree -- node )


Outputs
None

Definition


:: slurp-tree
( tree quot: ( ... entry -- ... ) getter: ( tree -- node ) -- ... )
[ tree count>> 0 = ] [ tree getter call quot call ] until ;
inline