I realize kotlin-statistics has `xxxBy` methods, b...
# science
h
I realize kotlin-statistics has
xxxBy
methods, but it'd be handy to have extensions that'd work on the result of kotlin's
groupBy
. For example, it'd allow solving the "find sums by name length" example like so:
Copy code
val sumsByLengths = sequence
                .groupBy { it.name.length }
                .sumBy { it.value }
t
I never thought of this. Let me review this and compare it to the existing operators.
h
I can do a PR if it's something you'd accept
t
Absolutely, please do