Join Slack
Powered by
Kotlin does allow you to do something like this if...
# getting-started
s
Shawn
01/27/2018, 9:05 PM
Kotlin does allow you to do something like this if you want, though:
Copy code
arg.toInt().let { when(it) { 1, 2, 3 -> println(it) } }
Open in Slack
Previous
Next