(no subject)

Konst Sushenko konsu@microsoft.com
Thu, 7 Feb 2002 12:38:11 -0800


One way to do it would be to look at the prelude's elem function.
Otherwise, just scan each list until you find a match.

> -----Original Message-----
> From: Phil Haymen [mailto:phaymen@yahoo.com]=20
> Sent: Thursday, February 07, 2002 12:18 PM
> To: haskell@haskell.org
> Subject: (no subject)
>=20
>=20
> hi,how do I define a function to test whether a number
> is an element of a list of lists of numbers.
>=20
> elem :: Int -> [[Int]] -> Bool
>=20
> __________________________________________________
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
> _______________________________________________
> Haskell mailing list
> Haskell@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
>=20