[Haskell-beginners] small question

Isaac Dupree ml at isaac.cedarswampstudios.org
Tue Oct 19 16:10:03 EDT 2010


On 10/19/10 14:35, Bastian Erdnüß wrote:
>    xor False = id
>    xor True  = not
>    infixr 2 xor

Also, exclusive-or on Bool can be written as /= (the first boolean is 
not equal to the second boolean), which makes sense to use because /= is 
a standard function.

-Isaac


More information about the Beginners mailing list