hudsonb
01/22/2019, 2:16 PMxxxBy
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:
val sumsByLengths = sequence
.groupBy { it.name.length }
.sumBy { it.value }
thomasnield
01/22/2019, 6:30 PMhudsonb
01/22/2019, 11:03 PMthomasnield
01/22/2019, 11:05 PM