Or just do a nullcheck on the result of `get` inst...
# getting-started
d
Or just do a nullcheck on the result of
get
instead of the
containsKey
, saves you one hash lookup as well.
v
Sadly, smartCast isn't handling that either because it's a complex expression. I'll have to introduce a new variable 😞
d
Nothing wrong with variables 😛