Join Slack
Powered by
I would like to have default return like in java i...
# getting-started
d
delater
08/17/2017, 9:38 AM
I would like to have default return like in java in kotin but when's else doesnt do the thing as it has to be in separate case
n
nayanjyoti
08/17/2017, 9:40 AM
Isn’t ur code returning
eCGI
just when
TYPE_LTE
else its
CGI
?
d
delater
08/17/2017, 9:41 AM
Yes, it is but I would like to state that explicilty
l
leonardootto
08/19/2017, 3:16 AM
when (x) { 0, 1 -> print("x == 0 or x == 1") else -> print("otherwise") }
2
Views
Open in Slack
Previous
Next