Hullaballoonatic
02/20/2022, 9:49 PMeygraber
02/21/2022, 1:55 AMHullaballoonatic
02/21/2022, 1:56 AMeygraber
02/21/2022, 1:57 AMwhen
. At first glance it didn't look like there was anything that couldn't be done in Kotlin.Hullaballoonatic
02/21/2022, 2:01 AMval Number.normalized
get(): Int = when (toInt()) {
> 0 -> 1
< 0 -> -1
else -> 0
}
Hullaballoonatic
02/21/2022, 2:02 AMelizarov
02/21/2022, 8:48 AMwhen
, but not all of them. Please, add your feedback on the use-cases you encounter in Kotlin code to https://youtrack.jetbrains.com/issue/KT-186