On Feb 5, 2006, at 5:28 AM, William James wrote:

> This may not be of any use to you, but here's a way to delete all
> elements but the first:
>
> class Array
>   def no_dup!( x )
>     (i = index(x)) && delete( x ) && insert(i,x)
>     self
>   end
> end

Array.uniq!

???

James Edward Gray II