| | |
Summary: RHEINISCH
WESTF ˜ ALISCHE
TECHNISCHE
HOCHSCHULE
AACHEN
LEHR UND FORSCHUNGSGEBIET
INFORMATIK 2
RWTH Aachen · D52056 Aachen · GERMANY
http://wwwi2.informatik.rwthaachen.de/lufgi2
LuFG
Informatik II
Prof. Dr. J˜ urgen Giesl
Peter SchneiderKamp
Stephan Swiderski
Exercises Functional Programming -- Sheet 3
Solutions will be collected until Wednesday, May 2, 2007 in the exercise course.
Exercises can be solved both in English and in German.
Exercise 1 (2+2+1 points)
The following data structure represents trees, where only leaves are labelled:
data Tree a = Node [Tree a] | Leaf a
|