Returns the result of performing a bitwise XOR operation on the two given values.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
Parameters
lhs
An integer value.
rhs
Another integer value.
Discussion
A bitwise XOR operation, also known as an exclusive OR operation, results in a value that has each bit set to 1
where one or the other but not both of its arguments had that bit set to 1
. For example: