Dominaezzz
06/11/2021, 11:51 AM(1..5).size
?hho
06/11/2021, 12:06 PMval IntRange.size: Int
get() = endInclusive - start + 1
hho
06/11/2021, 12:07 PMDominaezzz
06/11/2021, 12:08 PMhho
06/11/2021, 12:11 PMClosedFloatingPointRange
but no special for countable ranges (which, if it existed, would be a great place for that size property)ilya.gorbunov
06/11/2021, 1:26 PMInt.MIN_VALUE..Int.MAX_VALUE
cannot have their size
expressed as Int
.Dominaezzz
06/11/2021, 2:50 PM