From: "Thairuby ->a, b {a + b}" Date: 2009-09-27T18:58:24+09:00 Subject: Re: 2D array to array of hashes with repeating header # I test this in ruby 1.9.1 result = data[1..-1].map{|e| Hash[data[0].zip(e)]} # And this should work for all version result = data[1..-1].map{|e| data[0].zip(e).inject({}){|x,y| x[y[0]]=y[1]; x}} -- Posted via http://www.ruby-forum.com/.