| | |
Summary: RHEINISCH-
WESTF
ALISCHE
TECHNISCHE
HOCHSCHULE
AACHEN
LEHR- UND FORSCHUNGSGEBIET INFORMATIK II
RWTH Aachen D-52056 Aachen GERMANY
http://www-i2.informatik.rwth-aachen.de/lufgi2
LuFG
Informatik II
Prof. Dr. J urgen Giesl
Rene Thiemann
Exercises Functional Programming { Sheet 15
Solutions will be collected until Thursday, Feb 13, 2003 in the exercise course.
Exercise 1 (4 + 3 + 2 + 4 points)
Use the type inference algorithm W to determine the most general type of the following -terms:
a) fix (\fold f e xs. if (isaN il xs) e (f (sel 2;1 (argof Cons xs))
(fold f e (sel 2;2 (argof Cons xs)))))
b) fix (\fold f e xs. if (isaN il xs) e (f (sel 2;2 (argof Cons xs))
|