shapeNested

Returns the shape of a nested array length. Note that the array should have compile-time nested lengths. Dynamic arrays get compile errors.

pure nothrow
size_t[rank!T]
shapeNested
(
T
)
()

Parameters

array T

input array

Return Value

Type: size_t[rank!T]

shape

Examples

assert([1].shapeNested == [1]);
assert([1, 2].shapeNested == [2]);
assert([[1,2],[3,4],[5,6]].shapeNested == [3, 2]);

Meta