Are endorder actions useful?

Barry Margolin barmar at think.com
Thu May 16 04:11:39 AEST 1991


In article <43107 at netnews.upenn.edu> mjd at saul.cis.upenn.edu (Mark-Jason Dominus) writes:
>The UNIX `tsearch' library includes a facility for performing a
>user-specified action on each node in a binary tree, in endorder.  (That
>is, the action is performed on a certain node only after it has been
>performed for all the nodes in the subtrees of that node.
>
>Have you ever used this facility, or can you think of a use for it?

This kind of option is useful when the action is something like "delete all
subnodes".
-- 
Barry Margolin, Thinking Machines Corp.

barmar at think.com
{uunet,harvard}!think!barmar



More information about the Comp.unix.wizards mailing list