Reputation: 22297
Apparently there is no boolean version of the bitwise exclusive-or operator (^^^)... what to do?
(^^^)
Upvotes: 31
Views: 8114
Reputation: 47904
let inline xor a b = (a || b) && not (a && b)
Upvotes: 4
Reputation: 993243
This is provided by the not-equal operator <>.
<>
Upvotes: 58