I am using Ruby on Rails 3.2.2 and Ruby 1.9.2.
Given the following multidimensional Array:
Array
[[\"value1\", \"value1_other\"], [\"value2\",
arr = [["value1", "value1_other"], ["value2", "value2_other"], ["value3", "value3_other"]] Solution1 = arr.map {|elem| elem.first} Solution2 = arr.transpose[0]