though I think the most concise way to do it would...
# getting-started
s
though I think the most concise way to do it would be
Copy code
when (x) {
    null -> ""
    is String -> x
    else -> someFun(x)
}