From: Srijayanth Sridhar Date: 2009-04-06T20:57:42+09:00 Subject: Re: how to dynamically create search term for array.find_all --000e0cd32e0acb81780466e19d39 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Set is used primarily for membership testing and is thus great for lookup. It also of course is good to eliminate duplicates thus preventing any inefficiencies in your code. Jayanth On Mon, Apr 6, 2009 at 3:58 PM, Adam Akhtar wrote: > ahh robert, sorry i missed your reply there, i was looking at > unrefreshed page from earlier today. > > > Many thanks for your response too. Im going to use that tip above plus > the odd sprinkling of eval("") for the conditions. > > i noticed you used to_set. Ive never used sets before. Is there a reason > why you chose that over a standard array? > > -- > Posted via http://www.ruby-forum.com/. > > --000e0cd32e0acb81780466e19d39--