BitXor

Not available in this language yet.
BitXor( value_1, value_2, ... )
BitXor( value_1, value_2, ... )
BitXor( value_1, value_2, ... )
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
BitXor( value_1, value_2, ... )

Description

The BitXor function returns the bit to 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

Argument Type Definition and Requirements

value

List of Numbers

A single value or a list of values to bitwise exclusive OR.

Returns

A number which is the bitwise exclusive OR of all values.

Examples

The query below 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.

System.out.println(
        client.query( Arr(
                BitXor(Value(0), Value(0)),
                BitXor(Value(1), Value(0)),
                BitXor(Value(1), Value(1)),
                BitXor(Value(6), Value(3))
        )).get());
[
  0,
  1,
  0,
  5
]