|
I had three questions of clarification and one question requiring further explanation.
In problem 2, "no explicit recursion" is allowed. Does that mean that the rewrite of reduce cannot be recursive but the call to reduce-tree can, since reduce-tree uses recursion? In problem 3, what "higher-order examples" are to be translated into ML? In addition, does "observing the types" mean the types that ML claim are associated with the returned values? Finally, could you explain again what are the arguments to reduce-tree, specifically what is "atomval"?
|
No recursion in your definition of reduce by Mike O'Donnell, 2000, Nov 16
Translate the examples in the lecture notes by Mike O'Donnell, 2000, Nov 16
atomval evaluates atomic symbols, op combines subtree values by Mike O'Donnell, 2000, Nov 16
to: