clamp

fun clamp(value: Int, min: Int, max: Int): Int