I would like to create an array of n empty arrays, i.e.
[ , , … n-3 's,  ]
So that the inner arrays are different objects.
Array.new(n,) does not help since the created arrays are not different
Is there an idiomatic way to accomplish this?
- Is there an idiomatic way to do this (in a generic way, of course):
=> [ [1,4,7], [2,5,8], [3,6,9] ]