Subject: Re: 360  Asst 2

> 
> 
> *1 In the asst. sheet, you only ask to also give a recursive version of
> discount named discount', but in the template that you provided which has
> both       stockValue' :: Stock -> Amount
>            stockValue' _ = 0.0
> 
>            discount' :: Stock -> Int -> Stock
>            discount' _ _ = []
> printed at the end.
> So, what is stockValue' here for ?

Disregard it.

> *2  For the non-recursive stockValue, discount, and extract, do we MUST
> using the map, sum, and filter functions to do them ? Are we allow to use
> any 'List Comprehension' method here instead, since it does the similar jod
> as 'map' and it also has its own 'filter' ?

It says to use map, sum, and filter, hence you should use map, sum, and 
filter (-;.

/CC

___________________________________________________________________________
Christian Collberg      | Email: c_collberg@cs.auckland.ac.nz
Computer Science Dept   | Fax:   +64-9-373-7453
University of Auckland  | Phone: +64-9-373-7599 x 6137
Private Bag 92019,      | WWW:   http://www.cs.auckland.ac.nz/~collberg/
Auckland, NZ            |
___________________________________________________________________________
"Education is an admirable thing, but it is well to remember from time
to time that nothing that is worth knowing can be taught." - Oscar Wilde
___________________________________________________________________________