|
There might be a blatantly obvious answer, but I cannot seem to figure out how a tree is passed to the function reduce-tree. I know that the tree has to be in list form, but where is it actually passed so that operations can be performed on the leaves using the functions passed to reduce-tree?
Also, I thought we were to redefine reduce using reduce-tree. Doesn't that mean that we have to choose arguments for reduce that are eventually passed to reduce-tree in order to produce the identity function?
|
tree args by dave, 2000, Nov 18
reduce-tree doesn't apply to trees, but it's output does by Mike O'Donnell, 2000, Nov 18
Another question on #2 by Ben Johnson, 2000, Nov 19
Your reduce equivalent to mine, test it with identity by Mike O'Donnell, 2000, Nov 19
to: