Thought provoking idea of the day: A colleague suggested that Hash#keys should return a Set, instead of an Array in Ruby 
A hash set is usually implemented as a thin wrapper around a hash map (this is true in Ruby specifically) so no it would not be.
-
-
Not sure what the benefit would be though since the values are already guaranteed to be unique.
-
Yeah, I agree. I'm guessing that it's just the reinforcement of uniqueness?
- 7 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.