Mobile Apps
Mastering all 5 Kotlin Scope Functions
It should come as no surprise that our Android team here at Punch Through loves Kotlin, and that we strive to write idiomatic Kotlin, taking advantage of its unique language features whenever possible. Some common questions we get from newer team members who are learning Kotlin revolve around its scope functions, namely: let, run, with, apply, and also. The scope functions are very similar in the way that they work and behave, or so it seems at…