Solutions to XOR in ML

ML's type system makes explicit representation of lambda calculus a bit tough in some cases.

To see if yours works, you need to test these:

Some solutions work in the first two cases only.
Some solutions work in the first 4 cases.
Some work in all 8 cases.