Thanks, I've read this page, but how can I simply apply these features to generate a function from a string ?
n
nil2l
12/13/2017, 8:44 PM
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)