[Haskell] List averaging function [was: View patterns in GHC: Request for feedback]

Brent Yorgey byorgey at gmail.com
Tue Jul 24 14:45:31 EDT 2007

Hi Man,

"Difficult" is a relative term -- with study and practice, what one once
considered difficult can become easy.  With that said, it is true that
beginners to Haskell might find it difficult to define an average function
correctly since Haskell is (for good reason) picky about numeric types.  If
you post some specific code you are having trouble with I'm sure someone
would be happy to help you.  You can also join the #haskell IRC channel on
freenode.net; it is populated by lots of helpful, friendly people who can
answer your questions about Haskell in real-time.


On 7/24/07, Manuel Hernandez <hg.manuel at gmail.com> wrote:
> Dear Haskellers,
>         why is so difficult to define a function to compute the average of
> a list of
> numbers??
> Warm regards!!!
> Man
> _______________________________________________
> Haskell mailing list
> Haskell at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell/attachments/20070724/2d932dec/attachment.htm

More information about the Haskell mailing list