From: "Jonas Pfenniger (zimbatm)" Date: 2011-01-09T21:08:10+09:00 Subject: Re: Best way for Array#find+transform ? 2011/1/9 David J. Hamilton : > You can abuse break to get a +find+ that acts a little like a hypothetical > +find_and_map+. > >  paths     = %w( /usr /usr/local /opt /tmp ) > >  location  = paths.find do |path| >    candidate = "#{path}/whatever" >    break candidate if File.exists? candidate >    false >  end Haha, that's the best-one :) I underestimate the power of break