aromal.s
09/01/2016, 10:10 AMwhen(x) {
is String, is Int -> {
print("x is an integer or string")
}
else -> {
print("x is unknown")
}
}
please let me know if there is any alternative way of checking multiple instance type in a single “case” block