Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Returning a duplicate from an Array
Jeff Miller
1/13/2009 10:01:00 PM
Hey guys,
I have an array of names that may contain duplicates. What I would like
to do is return an array OF THE DUPLICATES. I was looking around at
various built-in methods for arrays, but the closest thing I can find is
Array.uniq, which returns the array without the duplicates.
Any suggestions on how to do this?
Thanks,
- Jeff Miller
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Returning a duplicate from an Array
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password