Jordan Isip
2006-Jul-04 06:41 UTC
[Rails] Quick question: Iterate through a collection - no duplicates
Hi, is there a simple way to iterate through collection and not include duplicates? Thanks in advance. Jordan -- Posted via http://www.ruby-forum.com/.
Daniel N
2006-Jul-04 06:47 UTC
[Rails] Quick question: Iterate through a collection - no duplicates
On 7/4/06, Jordan Isip <jordanisip@yahoo.com> wrote:> > Hi, is there a simple way to iterate through collection and not include > duplicates?@my_collection.uniq.each do |thing| stuff end Thanks in advance.> > Jordan > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060704/3784f9ac/attachment.html