How can I delegate an implementation to a mutable property in Kotlin?
问题 As to my understanding, the idea of delegating an implementation in Kotlin is to avoid code that looks like this: class MyClass(val delegate : MyInterface) : MyInterface { override fun myAbstractFun1() = delegate.myAbstractFun1() override fun myAbstractFun2() = delegate.myAbstractFun2() // ... } Instead, we can write the following code which should do the same: class MyClass(val delegate : MyInterface) : MyInterface by delegate Now, I'd like delegate to be a mutable variable, i.e. my code