5550924dc5
Inverts the conditional expression in an if expression.
11 lines
130 B
Plaintext
11 lines
130 B
Plaintext
fun foo(): Boolean {
|
|
return true
|
|
}
|
|
|
|
fun main() {
|
|
if (!(foo() && foo())) {
|
|
foo()
|
|
} else {
|
|
foo()
|
|
}
|
|
} |