I think the difficulty is that a simple tree (with add Tree Tree answer) will not be used by anyone. Without specifying a more specific type of tree, you will have to implement all these methods by scanning, tank performance.
In addition, updating immutable trees is very expensive since a typical design has several common data structures.
Lastly, immutable trees must be completely rewritten each time if you allow any backtracking.
source share