5550924dc5
Inverts the conditional expression in an if expression.
10 lines
120 B
Kotlin
Vendored
10 lines
120 B
Kotlin
Vendored
fun main() {
|
|
val a = 10
|
|
|
|
<caret>if (a > 0)
|
|
a
|
|
else if (a < -5)
|
|
a + 1
|
|
else
|
|
a + 2
|
|
} |