From: Mathieu Bouchard Date: 2001-11-19T08:25:45+09:00 Subject: [ruby-talk:25799] Re: Array.new(n, Array.new(m)) weirdness, but "select isn't broken" On Mon, 19 Nov 2001, Chris Reay wrote: > The following occurs ... > irb(main):001:0> a = Array.new(3, Array.new(3)) the above creates one array put three times into a second one, but this: a = (0...3).map { Array.new 3 } creates three arrays put into a fourth one. ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju