how can I make a function that operates 2 binary trees? for example if the operation is “+”, the n-esim number of every node of the resultant tree will be the sum of the n-esim number of the 1st tree with the n-esim number of the 2nd tree, considering the same structure for each node (if the node is a list the sum would be a list, if the node is number the result would be a number, etc).
Here is an example:
(operate "+" ’((1 2)((2 3) null null) null) ’((0 2)((1 4) null null) null))
the return should be:
’((1 4) ((1 7) null null) null)
Note: the representation is (Father (leftSon)(rightSon))