Join Slack
Powered by
How would you name an extension on `Number` that ...
# stdlib
h
holgerbrandl
02/18/2021, 7:19 PM
How would you name an extension on
Number
that trims it at 0, that is
if(it<0) 0 else it
?
a
Adam Powell
02/18/2021, 7:21 PM
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/coerce-at-least.html
h
holgerbrandl
02/18/2021, 7:27 PM
Solved already. Awesome, thanks.
4
Views
Open in Slack
Previous
Next