On 30/01/2015 17:01, Kenji Hara via Digitalmars-d wrote:
2015-01-31 1:53 GMT+09:00 Nick Treleaven via Digitalmars-d < [email protected]>:This version of staticArray allows the user to (optionally) specify the element type.How the API can replace following declaration with ? auto[$][][$] = [ [[1,2]], [[3,4], [5,6]], [[7,8], [9,10], [11,12]], ];
alias s = staticArray;
auto arr = staticArray(
[[1,2].s],
[[3,4].s, [5,6].s],
[[7,8].s, [9,10].s, [11,12].s],
);
