
27 Jan
2005
27 Jan
'05
9:59 a.m.
Because both bit0 and bit1 are free *local* variables within the case expression. So, they have nothing to do with your defined functions bit0 and bit1. Best regards, Salvador. yeoh@cs.wisc.edu wrote:
Can a kind soul please enlighten me on why f bit0 and f bit1 both return 0?
bit0 = False bit1 = True f x = case x of bit0 -> 0 bit1 -> 1
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe