https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
r

Raed Ghazal

09/06/2021, 3:10 PM
Hey guys, just sharing a cool extension
inline fun <T> massAction(vararg objects: T, block: T.() -> Unit) {
objects.forEach {
block(it)
}
}
this is nice if you need to update many instances of the same class at once