6 lines
79 B
Kotlin
6 lines
79 B
Kotlin
fun some(x: Any) {
|
|
when (x) {
|
|
is Int -> 0
|
|
else -> 1
|
|
}
|
|
} |