Another option: ``` fun test(a: String): MyInterf...
# announcements
p
Another option:
Copy code
fun test(a: String): MyInterface {
    val b = a
    return object : MyInterface {
        override fun call(a: String): String {
            return a + b
        }
    }
}