if you want to convert it to Kotlin, you need a st...
# random
d
if you want to convert it to Kotlin, you need a struct exp = { operator: String, left: number, right: number} and then
Copy code
when(exp.operator){
   "add" -> ....
   "mult" -> ...
}
but the resulted syntax is de-sugared