looks good enough for me; thanks.
On Tuesday, 18 February 2014 22:05:20 UTC-3, John Myles White wrote: > > To my knowledge, there’s no 3D literal. For this case, I’ve historically > done things by looping over the final dimension: > > A = Array(Int, 2, 2, 2) > A[:, :, 1] = [1 2; 3 4] > A[:, :, 2] = [5 6; 7 8] > > Not sure if that’s the nicest way, but it’s worked out well enough for me. > > — John > > On Feb 18, 2014, at 5:02 PM, andrew cooke <[email protected] <javascript:>> > wrote: > > > i need some way of writing a collection of values that are indexed by 3 > values. it doesn't have to be a 3d array - it could be an array of an > array of an array, for example. the total size is 8x4x8. > > > > what's the "nicest" way of doing this as a literal value? should i > write it as 1D and then re-shape it? i can't find a way of writing a 3D > literal directly. > > > > thanks, > > andrew > > > >
