From: Christian Date: 2008-11-01T09:09:03+09:00 Subject: n-dimensional array in Ruby Hi, i have a little Java problem, I want to solve using Ruby. Therefor I need an n-dimensional array. In Java it looks like this: double dArray[][][] = new double[x.length()+1][y.length()+1][x.length() +y.length()+3]; dArray[0][0][0] = 0; dArray[0][0][1] = POSITIVE_INFINITY; Further values will be computed through loops and written into the array. How do I initialize such an array in Ruby?