And more generally these kind of holes in <#C0B8Q3...
# stdlib
m
And more generally these kind of holes in #stdlib where we have
Iterable<Long>.sum()
, but not
List<*>.sumByLong
(like we have
sumBy
for ints and
sumByDouble
).
i
mg6maciej: We have postponed adding a lot of such variants until the resolution of https://youtrack.jetbrains.com/issue/KT-11265 becomes clear. In case it is implemented, we can have only one function,
sumBy
and overload it by the return type of the selector.
m
Makes sense. I'd like to have this implemented although I see how it's problematic to do so.