Say for example I have the following object...
val ob = Thread.currentThread().getStackTrace()[2]
...and I want to select a property from this via a dynamic variable. ob.<property> would work normally but what if I didn't know <property> at compile time?
Is it possible to run something like ob[<property:str>] (as is the case in javascript, python etc) in kotlin?