[Haskell-cafe] Java or C to Haskell

Ketil Malde ketil+haskell at ii.uib.no
Wed Sep 20 05:24:22 EDT 2006


Andrea Rossato <mailing_list at istitutocolli.org> writes:

> I forgot, obviously, that lists are an instance of the Eq class...
> so, this is enough:

> comp l1 l2 = if l1 == l2 then True else False

Or why not:

> comp l1 l2 = l1 == l2

Or simply:

> comp = (==)

:-)

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants



More information about the Haskell-Cafe mailing list