raulraja
01/07/2018, 7:15 PMwhen
expressions when they are translatable to JVM switch
statements?
when (1) {
0 -> ...
1 -> ...
}
when ('a') {
'a' -> ...
'b' -> ...
}
If it doesn't is there any way to instruct it to do so or are if/else
recommended for high performance cases over when
?