https://kotlinlang.org logo
#getting-started
Title
# getting-started
x

xenoterracide

12/21/2017, 10:17 AM
hmm... I suppose I could do that, but when might fit better.. however
Copy code
when {
   x == 2 -> doThing()
   x.isEven() -> doOtherThing()
}
if x is 2 will it call both doThing() and doOtherThing()?