hi,_______________________________________________assigment: make your own element function with the any function.--elem with anymyElemAny :: Eq a => a -> [a] -> BoolmyElemAny a = any (== a)--elem with anymyElemAny' :: Eq a => a -> [a] -> BoolmyElemAny' a [x]= any (== a) [x]myElemAny' compiles but throws an error because it has a non-exhaustive pattern. Could somebody tell me why the list gives the function grieveness?thanks,
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners