mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
5 lines
81 B
Kotlin
5 lines
81 B
Kotlin
fun isString(x: Any) = when(x) {
|
|
is String -> "string"
|
|
else -> "something"
|
|
}
|