shape

Lengths of the corresponding array dimensions.

size_t[]
shape
(
A
)
(
A arr
)

Examples

int[4][5][6] arr456;
assert(arr456.shape == [4, 5, 6]);
int[][][] arr000;
assert(arr000.shape == [0, 0, 0]);
int[3][][7] arr307;
assert(arr307.shape == [3, 0, 7]);
int[][][7] arr007;
assert(arr007.shape == [0, 0, 7]);
int[5][][] arr500;
assert(arr500.shape == [5, 0, 0]);
int[] dynArr = new int[](8);
assert(dynArr.shape == [8]);

Meta