On Wed, Apr 20, 2011 at 5:25 PM, Brian Candler <b.candler / pobox.com> wrote:
> Robert K. wrote in post #993961:
>> My first choice would be to use Set and not Hash as values.
>
> OK, although Set is really just a thin wrapper around Hash(*), and I
> find it easier to work with objects of one class instead of a two.

In this case the difference is probably rather small but generally I
try to use the best abstraction.  In this case "a collection which
contains every element at most once" translates directly to "set" for
me. :-)

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/