Join Slack
Powered by
if you want to convert it to Kotlin, you need a st...
# random
d
dg3feiko
04/20/2017, 1:54 PM
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
10
Views
Open in Slack
Previous
Next