Make the order of Hash#reverse_merge! consistent with HashWithIndifferentAccess #28077
Currently, the result of
This PR aims to make the element order consistent across the 4 methods such that:
That's true. What I also haven't done yet is run a benchmark to see the impact.
It does make the implementation simpler to maintain, since it's the same as
A further improvement could be to remove the method definition there, since it inherits from