chickadee » slib-wt-tree » wt-tree/intersection

wt-tree/intersection tree1 tree2procedure

Returns a new tree containing all and only those associations from tree1 which also have associations in tree2. All the associations in the result are drawn from tree1.

The time required by this operation is at worst proportional to the sum of the sizes of the trees.