cypher121
08/29/2016, 8:27 AMrun
and with
, in which case run
can be used like nullable?.run { ... }
, which runs the block only if receiver is not null, or like nullable.run { ... }
which always runs the block, but with nullable receiver. if you use with
, you're pretty much stuck with nullable receiver