5 lines
81 B
Kotlin
5 lines
81 B
Kotlin
fun isString(x: Any) = when(x) {
|
|
is String -> "string"
|
|
else -> "something"
|
|
}
|