[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Array uniq

Belorion

3/5/2005 5:58:00 PM

> Total overkill when the following would be more fun:
>
> ~ a.uniq! { |x, y| x.thing == y.thing }
>
> or something similar...
>
> It seems strange that this hasn't already been done. There must be a
> good reason...


This subject was brought up not too long ago. Check out
http://tinyurl...

Matt