Understanding Kotlin's let(), also(), run(), and apply()
Kotlin's standard library includes a handful of scope functions, like let(), also(), run(), and apply(). It's easy to confuse them, so this guide provides an easy-to-understand way to think about them, so that you can choose the right one for the job.