| | |
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 5
Solutions will be collected until Thursday, Nov 21, 2002 in the exercise course.
Exercise 1 ( 1.5 + 2.5 points)
(a) Dene a function appendTwiceFile :: String -> String -> IO () that takes a lena-
me fn and a string s as input and appends s to the contents of fn twice. You should only
use the predened functions readFile and writeFile for I/O. In this part, you are not
allowed to use the do-notation.
|