Enhancing groupBy with Second Projection Function
From using ReadonlyArray.groupBy a lot, I think it could be useful to add a second projection function for the value:
That's because you usually don't need a second time the part of A that you used to make the key of the record. For instance, with the groupBy function as it is now, you would have:
That's because you usually don't need a second time the part of A that you used to make the key of the record. For instance, with the groupBy function as it is now, you would have:
