holgerbrandl
11/18/2021, 7:31 PMAlex Vanyo
11/18/2021, 7:56 PMcoerceIn, coerceAtLeast and coerceAtMost should do the trick depending on your case: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/coerce-in.htmlholgerbrandl
11/18/2021, 10:09 PM