>>>>> "C" == Christian Boos <cboos / bct-technology.com> writes:

C>  Array.new(3).map { [] }

C> Is there something shorter/more efficient?

 With 1.7 you can give it a block

pigeon% ruby -ve 'a = Array.new(3) { [] }; a[1].push 1; p a'
ruby 1.7.2 (2002-08-06) [i686-linux]
[[], [1], []]
pigeon% 



Guy Decoux