Bitwise exclusive OR operation of two integer numbers
The function OrBit performs a bitwise exclusive OR operation of two natural numbers or lists. XOrBit is different from XOrBitX in the handling of lists.
XOrBit (a, b)
XOrBit (a, list)
XOrBit (list, list)
XOrBit(12,7)= 11
If one argument is a list and the other is a natural number, each element in the list is exclusive OR operated with the number.
XOrBit([9,10,11,12,13,14,15],24)= 17 18 19 20 21 22 23
If both arguments are lists, each element of the first list is exclusive OR operated to the corresponding element of the second list.
XOrBit([8,9,10],[7,8,9])= 15 1 3
If two lists have different lengths, the overhang of the longer list is ignored.