On Wed, Jan 12, 2011 at 12:40 PM, botp <botpena / gmail.com> wrote:
>  > ->(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