Thanks, I've read this page, but how can I simply ...
# announcements
l
Thanks, I've read this page, but how can I simply apply these features to generate a function from a string ?
n
Copy code
class Adder(val i: Int) { fun add(j: Int) = i + j }
    val k = Adder::class
    val adder = Adder(5)
    val m = k.members.find { it.name == "add" }?.call(adder, 10)
    println(m)