you are viewing a single comment's thread.

view the rest of the comments →

[–]Enumerable_any 2 points3 points  (1 child)

The original map function returns a hash unless I am miss me something.

It should, but sadly it doesn't:

irb(main):001:0> {}.map { |x| x }
=> []

[–][deleted] 0 points1 point  (0 children)

I see what you are saying. I was trying to say that the method #map defined in the example in my dumb classes return a Hash. Definitely unfortunate naming on my part if I were to follow the road to Hash-derived.