img_array = [ ['a', 'b', 'd', 'e'], ['f', 'g', 'h', 'j']] img_array.each do |row, row_index| p row p row_indexend
Standard input is empty
"a" "b" "f" "g"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!