COMP1011 Exercises for Week 02
Computing 1A 05s2 Last updated Tue 19 Jul 2005 14:37

Tute Exercises, Week 2

Basic Haskell

This week we don't have tutorial exercises, but the following items should be revised to avoid problems with the lab exercises.

Simple Functions over Numbers and Strings

Function Definitions

The following definitions from the lecture should be understood:

module MyPrgm 

inc   :: Int -> Int
inc x  = x + 1

average     :: Float -> Float -> Float
average a b  = (a + b) / 2.0
Which rules have to be considered when choosing a name for