xnor

infix fun Boolean.xnor(other: Boolean): Boolean

Performs a logical xnor operation between this Boolean and the other one.

Example:

false xnor false // true
false xnor true // false
true xnor false // false
true xnor true // true

Since

1.1.0

See also

Boolean.not
Boolean.xor

infix fun Int.xnor(other: Int): Int

Performs a bitwise XNOR operation between the two values.

Example:

0 xnor 0 // -1
0 xnor 1 // -2
1 xnor 0 // -2
1 xnor 1 // -1

Since

1.1.0

See also

Int.xor