5550924dc5
Inverts the conditional expression in an if expression.
11 lines
145 B
Plaintext
11 lines
145 B
Plaintext
// WITH_RUNTIME
|
|
fun main() {
|
|
val list = 1..4
|
|
|
|
for (x in list) {
|
|
if (x != 2) {
|
|
} else {
|
|
list
|
|
}
|
|
}
|
|
} |