Closed leonardbinet closed 4 years ago
Another type of pasting:
paste
merge
Given the following trees: current
root ├── A └── B
new_tree
root2 ├── C └── D └── D1
Pasting new_tree on B node:
current.paste('B', new_tree) current.show() root ├── A └── B └── root2 ├── C └── D └── D1
Merging new_tree on B node:
current.merge('B', new_tree) current.show() root ├── A └── B ├── C └── D └── D1
@caesar0301 what do you think of such an option?
@caesar0301 I've kept appart both methods for clarity.
Another type of pasting:
paste
: (existing feature) place new tree under a given node of initial treemerge
: (new feature) place new tree root children under a given node of initial treeGiven the following trees: current
new_tree
Pasting new_tree on B node:
Merging new_tree on B node: