FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
BitXor
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
BitXor( value_1, [ value_2, ... ] )
bitxor( value_1, [ value_2, ... ] )
BitXor( value_1, [ value_2, ... ] )
BitXor( value_1, [ value_2, ... ] )
BitXor( value_1, [ value_2, ... ] )
Description
The BitXor
function returns the bit in the result if the bit
exists in only one argument. The arguments must be numbers, and the
fractional portion is truncated before the XOR operation is applied. The
result is the bitwise exclusive OR of all of the arguments.
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
List of Numbers |
One or more numbers to bitwise exclusive OR. |
Examples
The following query executes an array of independent bitwise exclusive OR operations and returns results in the result array. The result array position matches the position in the execution array.
[ 7, 0, 1, 0, 5 ]
[7, 0, 1, 0, 5]
[7 0 1 0 5]
Arr(LongV(7), LongV(0), LongV(1), LongV(0), LongV(5))
[ 7, 0, 1, 0, 5 ]
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!