>to be [] in each case.

ahh but in this example:

 f :: [Int] -> [Bool]
 f (i:is) = even i : f is
 f [EMAIL PROTECTED]   = e

e is an empty list of Ints not an empty list of Bools!

you mean:

f :: [Int] -> [Bool]
 f (i:is) = even i : f is
 f _ = []


Keean.
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to