https://kotlinlang.org logo
d

Dico

10/08/2018, 12:40 PM
In light of earlier discussion, I want to add that
x.apply {}
does not do the same as
with(x) {}
in all situations, because
apply
returns the receiver, whereas
with
returns the result of the code block.
👆 1