d08b18f5f8
Converted from the relevant intention Reported cases: one-liners, whens Also, more exact caret detection in local inspection tests
5 lines
77 B
Plaintext
Vendored
5 lines
77 B
Plaintext
Vendored
fun sign(x: Int): Int = when {
|
|
x < 0 -> -1
|
|
x > 0 -> 1
|
|
else -> 0
|
|
} |