Files
kotlin-for-java-developers/src/Run.kt
2025-08-01 10:03:04 +02:00

7 lines
174 B
Kotlin

fun main() {
// Similar to with but can be used with nullable values
val uppercase = nullableString()?.run { uppercase() }
}
fun nullableString(): String? = "Hello"