Try `obj?.let { ... } ?: run { ... }`. Thread in S...
# announcements
g
Try
obj?.let { ... } ?: run { ... }
. Thread in Slack Conversation Couldn't there be cases, where both paths might be executed? If the last statement in the
let
block would evaluate to
null
, that would make
let
itself return
null
and thus trigger the elvis operator.. or am I missing something here?