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