A tree iterator adds the ability to prune the current iteration.
Rest
Skip the whole subtree below the last returned element. The iteration continues as if that element had no children.
Optional
A tree iterator adds the ability to prune the current iteration.