https://kotlinlang.org logo
#random
Title
h

hastebrot

06/20/2016, 8:07 PM
Yes. Kotlin stdlib also has something similar to
clamp()
(also commonly used in gamedev):
Double.coerceIn()
.