From: botp Date: 2011-01-12T14:39:54+09:00 Subject: Re: Best way for Array#find+transform ? On Wed, Jan 12, 2011 at 12:40 PM, botp wrote: >  paths.find_and_remap ->(path){File.exists?(path)}, > ->(path){File.join(path,filename)} >  #=> ["/usr", "/usr/jruby"] i just noticed i had 3 versions more... fwiw :)) paths.find_and_remap ->(path){File.join(path,filename)} {|path| File.exists?(path) } #=> ["/usr/jruby", "/usr"] best regards -botp