Apparently there is no boolean version of the bitwise exclusive-or operator (^^^)
... what to do?
XOR is a bitwise operator, and it stands for "exclusive or." It performs logical operation. If input bits are the same, then the output will be false(0) else true(1).
This is provided by the not-equal operator <>
.
let inline xor a b = (a || b) && not (a && b)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With