On Monday, June 19, 2006, at 9:38 PM, Josh Kieschnick
wrote:>an application i am working on sends emails to an array of users. it is
>possible for the user''s email to actually be in the array more than
>once.
>
>i don''t have a real strong grasp of the ruby syntax yet, but is
there an
>easy way to go through and either remove all of the duplicates or at
>least only send an email to that user once?
>
>--
>Posted via http://www.ruby-forum.com/.
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails
new_array = some_array.uniq
_Kevin
--
Posted with http://DevLists.com. Sign up and save your mailbox.