2012-06-25 64 views

回答

6
a.each_with_index.max_by { |x,i| x.length }.last 
2

發現:a.each_with_index.max_by {|x, idx| x.length }