Simon Lin
val a: Int? = null a.foo { 0 } // 0 val b: Int? = 1 b.foo { 0 } // 1
spand
?:
b ?: 0
nkiesel
.map { it ?: 0 }