Michael (& the Haskell mailing list)
On Thu, 9 Sep 1999, Phil Molyneux wrote:
[stuff deleted]
> unzip :: [(a,b)] -> ([a],[b])
> unzip [] = ([],[])
> unzip (a,b):ps
> = (a:as,b:bs)
> where
> (as,bs) = unzip ps
>
Of course, the line
unzip (a,b):ps
illustrates a typical first year student error --- it should be:
unzip ((a,b):ps)
I could blame my mailer for not having a Haskell parser or even the late
summer heat but instead I'll sit here in the corner and write out a 100
times:
``Function application is denoted by juxtaposition, left associative and
has highr precedence than anything else''
Sorry to spoil people's bandwidth but I thought I should point out this
error.
Phil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phil Molyneux email [EMAIL PROTECTED]
work tel 0181 547 2000 x 5233 home tel 0181 549 0045
Kingston Business School WWW http://www.kingston.ac.uk/~bs_s024
Kingston University, Kingston Hill, Kingston-upon-Thames KT2 7LB, UK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~