From: Trans Date: 2005-01-30T19:45:49+09:00 Subject: Re: Array::uniq { block } ? > By analogy with sort and sort_by > a.uniq_by {|i| i[1]} would work like uniq, but hashing i[i] > rather than i. a.uniq {|i,j| f(i,j) == true } would be the > generalised method, but as noted that's O(n^2) rather > than O(n). (Also I'm not sure it'd be algorithmically sound > - you could introduce order dependencies with a sufficiently > adversarial comparison function.) Has anyone, could anyone, write a Ruby version of this method? I'm not sure what its supposed to do exaclty. Id like to see source. Thanks, T.