brand?.let { badge.enabled = brand.isNewBadge }
How Kotlin became our primary language for Android
Dima Kovalenko
42216

Why not something like this ? 
brand?.run { enabled = brand.isNewBadge }

run is in fact really similiar to apply extension but it does not return T-ype as apply does :)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.