From: gwtmp01@... Date: 2007-01-23T07:45:52+09:00 Subject: Re: array equality question On Jan 22, 2007, at 5:30 PM, Chris McMahon wrote: > I assumed order of elements would not be considered for equality. Is > there any particular reason for this behavior? The concept of order is an integral part of what it means to be an Array. If you aren't interested in order, then a Set is probably a better structure. require 'set' a = [1,2,3] b = a.reverse p a == b # false p Set.new(a) == Set.new(b) # true Gary Wright