SplitScript reference / Integer / bitXor
Integer.bitXor
Operator
T.bitXor(other: T) -> T where T: Integer
Combines two integers with a bitwise exclusive OR.
This method is also the implementation of the ^ operator.
Parameters
other: The other integer.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Toggle a flag in a mask
let toggled = 0x30u32 ^ 0x20