TreeTransformer
is called on each node. It returns some Tree
. The transformed tree has a new tree structure (i.e., a "deep copy" is done), but it will usually share its labels with the original tree.
@param transformer The function that transforms tree nodes or subtrees
@return a transformation of this Tree
|
|