Handbook
Glossary
slurp-tree-left ( tree quot: ( ... entry -- ... ) -- ... )
Binary search trees
Prev:
pop-tree-right ( tree -- node/f )
Next:
slurp-tree-right ( tree quot: ( ... entry -- ... ) -- ... )
Vocabulary
trees
Inputs
tree
a
tree
quot
a
quotation
with stack effect
( ... entry -- ... )
Outputs
None
Word description
Removes entries from a tree from the left (lowest key) and processes them with the quotation until the tree is empty.
See also
slurp-tree-right
Definition
USING:
trees.private
;
IN:
trees
:
slurp-tree-left
( tree quot: ( ... entry -- ... ) -- ... )
[
pop-tree-left
]
slurp-tree
;
inline