xor

infix fun Any?.xor(other: Any?): Boolean(source)

Checks if exactly one Element is not null