Hi, can I replace inline interface implementation ...
# codereview
d
Hi, can I replace inline interface implementation with lambda expression? For example i would like to use
Copy code
return {
    it.someList.add({
        this@KeyboardElement.unsubscribe()
    })
}
instead of
Copy code
return object : Interface1 {
    override fun method1(rule: RegistryRule) {
        rule.someList.add(object : Interface2 {
            override fun method2() {
                this@KeyboardElement.unsubscribe()
            }
        })
    }
}