mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-06-01 23:45:28 +00:00
6 lines
207 B
Kotlin
6 lines
207 B
Kotlin
package dev.inmo.micro_utils.common
|
|
|
|
@Deprecated("Redundant", ReplaceWith("coerceIn(min, max)"))
|
|
@Suppress("NOTHING_TO_INLINE")
|
|
inline fun <T : Comparable<T>> T.clamp(min: T, max: T): T = coerceIn(min, max)
|