From: Milo Thurston Date: 2008-08-01T22:59:59+09:00 Subject: Re: Using array.select with grep Robert Klemme wrote: > Just one additional remark: if your Arrays grow large you might > benefit from converting them to Set which has faster lookups. You're right - if I use a Set then the lookup is astonishingly fast by comparison. Is it OK to combine arrays and sets, though? For example, I have a Set of things I need to grep and an array I don't, and these need to be combined as an array. So, is: final = set + array ...OK, or do I need to do final = set.to_a + array ...or even something else? Thanks. -- Posted via http://www.ruby-forum.com/.