> Just to amuse you all, here's a quick Haskell 98 quiz: > > What do the following definitions do: > > 1 x + 1 = f x > > 2 (x + 1) = f 2 > > 3 (x + 1) * 2 = f x > > 4 (x + 1) 2 = g x On a similar note, what does this (legal Haskell 98) definition mean? (((+) + 1) + 1) 1 = (+) That's right! (+) :: (Integral a, Num b, Num c) => a -> b -> c -> a Cheers, Simon -- Simon Marlow Microsoft Research Ltd., Cambridge, U.K.
- Why I hate n+k Simon Peyton-Jones
- Re: Why I hate n+k Simon Marlow
- Re: Why I hate n+k Hans Aberg
- Re: FW: Why I hate n+k Jon . Fairbairn
- Re: Why I hate n+k Pablo E. Martinez Lopez
- Re: Why I hate n+k Hans Aberg
- Re: Why I hate n+k Ralf Hinze
- Re: why I hate n+k Johannes Waldmann
- Re: Why I hate n+k Andrew Butterfield
- Re: FW: Why I hate n+k Graeme E Moss
- Re: why I hate n+k Craig Dickson
- Re: why I hate n+k Brian Boutel