Chris Fillmore
04/25/2022, 5:44 PMkotlin.ranges.coerceAtLeast and kotlin.ranges.coerceAtMost, any reason these should be used in place of maxOf / minOf? It surprises me that their implementation is not just Math.max and Math.min , but maybe I’m missing something!Chris Fillmore
04/25/2022, 5:46 PMMath is on the JVMephemient
04/25/2022, 5:49 PMit.coerceAtMost(MAX)
minOf(it, MAX)
the number of bugs I've run across where the author wrote `min(MIN)`/`max(MAX)` is too high…Chris Fillmore
04/25/2022, 5:50 PM