From: Tammo Freese Date: 2001-03-06T22:26:33+09:00 Subject: [ruby-talk:12127] hash.invert loses data if equal values exist - is this the right behaviour? By inverting a hash that has same values, I expected to see an Exception. Curious which it would be, I tested it and found a surprising result: D:\software>ruby -ve 'p [hash = Hash[1, 3, 2, 3], hash.invert]' ruby 1.6.2 (2000-12-18) [i386-cygwin] [{1=>3, 2=>3}, {3=>2}] No exception. Is this correct? - Tammo Freese freese@acm.org