Hey, I'm trying to express ``` when(x) { // x: Any...
# getting-started
t
Hey, I'm trying to express
Copy code
when(x) { // x: Any?
    is String -> x
    is null -> ""
    else -> someFun(x)
}
having trouble on two fronts: 1)
is null
is not a thing 2) is there a way to NOT repeat
x
inside `when`'s body? (i.e. why don't `this`/`it` work here?)