📅  最后修改于: 2022-03-11 14:56:51.206000             🧑  作者: Mango
fun Int.increment(): Int {
return this+1
}
fun Boolean.invert(): Boolean {
return xor(true) // a xor true = !a, by the conditional inversion property of xor.
}