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