But why create that entirely new class? If you wan...
# announcements
o
But why create that entirely new class? If you want to save a few characters, just define this simple function:
Copy code
inline fun <T> onChange(initialValue: T, crossinline onChanged: (value: T) -> Unit)
        = Delegates.observable(initialValue) { _, _, new -> onChanged(new) }
👍 5