Join Slack
Powered by
Let and apply are very helpful and I use them ofte...
# getting-started
a
adam-mcneilly
05/06/2018, 2:35 AM
Let and apply are very helpful and I use them often. I don't so much with the other two. Let is another nice way of running null checks. You can do
myNullableObject?.let { doStuffAssumingNotNull() }
Apply is also helpful when you want to run initializations for something.
Open in Slack
Previous
Next