gabrielladin / jc-tree

Automatically exported from code.google.com/p/jc-tree
0 stars 0 forks source link

New methow in the Tree interface #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I suggest to add method like 

void(?) addBranch(E parent, Tree<E> branch);

the could add provided tree as a sub-tree under desired parent element. 

I didn't noticed such things yet..

Thanx!

Original issue reported on code.google.com by buckel...@gmail.com on 19 Aug 2011 at 11:18

GoogleCodeExporter commented 9 years ago
You mean merging two trees, I suppose. Thats a great operation to have but may 
be an overkill. Did you have come across a scenario where it could be useful? A 
use case may help me appreciate it.

Original comment by gsaxen...@gmail.com on 20 Aug 2011 at 1:42