On Wed, Sep 20, 2006 at 07:20:23PM +1000, Donald Bruce Stewart wrote: > > comp l1 l2 = if l1 == l2 then True else False > > > > You never stop learning! > > andrea > > which you would just write as: > comp = (==) > > and then you'd just use == anyway :)
this is why I came to love haskell: it remembers me when I was doing mathematics at the high school. The most challenging stuff, for me, was finding a way to simplifying expressions... It's just an endless chess game. Sending mails to this mailing list, I mean. Andrea _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe