When I asked you a question, I found that
group_by's equivalence decision was not
eql? but I couldn't find the document when I looked for what was being used.
I searched ruby source code by
def group_by, but found only test code...
Under what conditions does
group_by determine that they are identical?
group_by is used to assemble a hash, it would be
This is what happened when I tried it.
The Object#hash documentation contains
If A.eql?(B), then A.hash==B.hash
You must meet the relationship.
It says, but the above behavior doesn't seem to be the same
© 2022 OneMinuteCode. All rights reserved.