5550924dc5
Inverts the conditional expression in an if expression.
11 lines
134 B
Kotlin
Vendored
11 lines
134 B
Kotlin
Vendored
fun foo(): Boolean {
|
|
return true
|
|
}
|
|
|
|
fun main() {
|
|
<caret>if (foo() && foo()) {
|
|
foo()
|
|
} else {
|
|
foo()
|
|
}
|
|
} |