From: Dave Thomas Date: 2001-07-13T05:41:00+09:00 Subject: [ruby-talk:17752] Re: What is Array#- ? Jim Freeze writes: > irb(main):003:0> a=%w{1 1 2 2 3 3 3} > ["1", "1", "2", "2", "3", "3", "3"] > irb(main):004:0> a-["3"] > ["1", "2"] > > This looks like this is really the minus operation mixed with the > uniq operation. > > a1 - a2 => a1.uniq - a2.uniq > or maybe > a1 - a2 => (a1-a2).uniq > > Someone care to explain this behavior? Forgive the doubled minus sign - wee LaTeX -> HTML conversion problem. However: http://www.rubycentral.com/book/ref_c_array.html#_mi_mi Dave