group_by only groups consecutive elements and may produce multiple groups with the same key. This fact is very easy to miss, it is easily the biggest footgun in the whole library.
I'd like to propose deprecating this method and making it an alias of a new method, group_by_consecutive.
The new name is not at all elegant, I'd love to come up with something better. But that's probably less important than choosing to deprecate the current name.
We are aware of this, see #374 for the current debate. I know it's an old issue and does not evolve fast enough but it should be resolved eventually there.
group_by
only groups consecutive elements and may produce multiple groups with the same key. This fact is very easy to miss, it is easily the biggest footgun in the whole library.I'd like to propose deprecating this method and making it an alias of a new method,
group_by_consecutive
.The new name is not at all elegant, I'd love to come up with something better. But that's probably less important than choosing to deprecate the current name.