📜  kotlin 问号 - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:33.376000             🧑  作者: Mango

代码示例1
x ?: y // yields `x` if `x` is not null, `y` otherwise.
x ?: throw SomeException() // yields `x` if `x` is not null, throws SomeException otherwise