A
anon luker
Hi, folks. Is this a bug?
irb(main):001:0> require 'set'
=> true
irb(main):002:0> a = [1,2,3].to_set
=> #<Set: {1, 2, 3}>
irb(main):003:0> b = a.dup
=> #<Set: {1, 2, 3}>
irb(main):004:0> a == b
=> true
irb(main):005:0> [a,b].to_set
=> #<Set: {#<Set: {1, 2, 3}>, #<Set: {1, 2, 3}>}>
Thanks,
prs
irb(main):001:0> require 'set'
=> true
irb(main):002:0> a = [1,2,3].to_set
=> #<Set: {1, 2, 3}>
irb(main):003:0> b = a.dup
=> #<Set: {1, 2, 3}>
irb(main):004:0> a == b
=> true
irb(main):005:0> [a,b].to_set
=> #<Set: {#<Set: {1, 2, 3}>, #<Set: {1, 2, 3}>}>
Thanks,
prs