dear sirs,
I have a problem to solve in haskell but i do
not know how to go about it. the problem is
write a haskell function for computing the
average value of a list of numbers.
I am using Hug 98 for windows and I tried
the following way:
average (x:xs) = s/l
where
s=sum(x:xs) && l=(x:xs)
I am a beginner studying on my own. I would
appreciate it if you could explain what I should and should not do.
Thank you
yours sincerely
Ruhi Sood
|
- No Subject Chris Angus
- Re: Lambada John Atwood
- RE: Lambada Erik Meijer
- Re: Lambada piet
- No Subject Simao Desousa
- No Subject Mutsu Tsukumo
- No Subject gregor . cramer
- No Subject Jan Brosius
- No Subject Viktor Kuncak
- No Subject Viktor Kuncak
- Re: Lokesh Sood
- Re: Erik Meijer
- No Subject Pretty9
- Re: Benjamin Leon Russell