I noticed that kotlin.collections.sumBy
and kotlin.collections.sumDouble
have been deprecated, replaced with kotlin.collections.sumOf
. Along with Int
and Double
, sumOf
also supports many other number types such as Long
and BigDecimal
.
Curiously, Float
is not included in sumOf
despite being available in maxOf
or minOf
. Is this a design decision?