Thanks,
my questions are, why are you passing the map in as an array to the Hash method?
Why didn’t the each_value method work?
Is there a way that does not use the Hash method?
Wild guess but I think in both of the cases that worked, we are actually creating a new hash. each_value works as well, except it doesn’t mutate the receiver(v in this case) in place, but creates a new copy instead.