Join Slack
Powered by
when (x) { 1 -> print("x == 1") 2 -> p...
# announcements
p
pakoito
11/02/2015, 9:35 PM
when (x) { 1 -> print("x == 1") 2 -> print("x == 2") else -> { // Note the block print("x is neither 1 nor 2") } }
3
Views
Open in Slack
Previous
Next