|
In problem 3 we are to translate the scheme examples into ML and then run them. Does the "run them" refer to the compiling, etc of the program that takes place when you hit return, or does it mean run examples of the functions in ML. i.e. For the given compose definition, is this sufficient: - fun compose f g x = f(g(x)); val compose = fn : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b or do we need to add something like the following: - (compose increment identity 5); val it = 6 : int Thanks, Avi |
Just observe the types and failures by Mike O'Donnell, 2001, Nov 19
to: