Like let()
, we can use run()
with the safe-call operator (?.
) to conditionally
evaluate a lambda expression, depending on whether the receiver is null
or not.
You can learn more about this in:
Tags: