https://kotlinlang.org logo
n

nil2l

10/19/2017, 9:55 AM
Copy code
private val foo: String?
fun getFoo(): String = foo ?: "default"