From: Dave Thomas Date: 2001-05-01T12:42:44+09:00 Subject: [ruby-talk:14477] Re: Large Matrix "rashworth" writes: > The map works fine, but I am not able to redefine > map[2][2] = "a" ? and then print map my_array = (1..50).map { (1..50).map { '+' } } my_array[2][2] = "a" puts my_array.collect {|row| row.join } #=> ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++a+++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ... etc