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