Kotlin does allow you to do something like this if...
# getting-started
s
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)
} }