Question Examples for Problem 3? 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: News Assignment #7 due Monday, 19 November (Mike O'Donnell)
Date: 2001, Nov 19
From: Avi Schwab ajschwab

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


Messages

1. Feedback Just observe the types and failures by Mike O'Donnell, 2001, Nov 19

to: "Examples for Problem 3?"