An XOR operator should be added to the query language.
Binary XOR is equivalent to (x | y) & -(x & y), which is simple to implement.
n-ary XOR should be implemented with the intuitive definition that x ^ y ^ z is true only if only one of the operands is true, however this seems rather difficult to implement. Research may be required.
An XOR operator should be added to the query language.
Binary XOR is equivalent to
(x | y) & -(x & y)
, which is simple to implement.n-ary XOR should be implemented with the intuitive definition that
x ^ y ^ z
is true only if only one of the operands is true, however this seems rather difficult to implement. Research may be required.