Hi all,

Ruby 1.8.3

irb(main):001:0> require "set"
=> true

irb(main):002:0> a = [0,1,2,3,4,5,2,3]
=> [0, 1, 2, 3, 4, 5, 2, 3]

irb(main):003:0> set1 = Set.new(a)
=> #<Set: {5, 0, 1, 2, 3, 4}>

irb(main):004:0> set2 = Set[a]
=> #<Set: {[0, 1, 2, 3, 4, 5, 2, 3]}>

Shouldn't the set returned by Set[] also be only the unique values?

Regards,

Dan