is it possible to use elvis operator with multiple...
# getting-started
j
is it possible to use elvis operator with multiple statements? like
Copy code
val someValueNotNull = somethingReturningNull ?: { sttmt1 stmt2 stmt3 }
d
Use
run
?
?: run { stmt1..... }
.
j
right thanks that was what i was looking for!
266 Views