From: Intransition Date: 2010-09-01T18:03:53+09:00 Subject: Array#=== as set equality It looks like Array#== and Array#=== are the same. Is that correct? That being so, would there be any serious consequences if Array#=== were redefined to mean "set equality", e.g. [:a,:b] === [:b,:a] #=> true I can think of a few times that would have been nice to have, especially when testing and hashes come into play, the results often do not have a fixed order. e.g. h = {:a=>1, :b=>2} r = h.map{ |k,v| [k,v] } assert r == [[:a,1], [:b,2]] won't work b/c it might also return [[:b,2], [:a,1]]