Linear array to matrix

Giovanni Di Maria calimero22 at yahoo.it
Sat Apr 4 09:25:14 UTC 2020


Hi.
Is there a Built-in function (no code, only a built-in function)
that transform a linear array to a Matrix?

For example:

From

[10,20,30,40,50,60,70,80,90,100,110,120];


To

[
[10,20,30],
[40,50,60],
[70,80,90],
[100,110,120]
];

Thank You very much
Cheers.
Giovanni



More information about the Digitalmars-d-learn mailing list