mir - Help on how to transform multidimentional arrays.

Newbie www at www.com
Thu Apr 29 15:22:55 UTC 2021


mir - Help on how to transform multidimentional arrays.


----------
| 0  1  2|
| 3  4  5|
| 6  7  8|
| 9 10 11|
|12 13 14|
----------
|15 16 17|
|18 19 20|
|21 22 23|
|24 25 26|
|27 28 29|
----------

How can i transform it into the following types of arrays.

----------
| 0 10 20|
| 1 11 21|
| 2 12 22|
| 3 13 23|
| 4 14 24|
----------
| 5 15 25|
| 6 16 26|
| 7 17 27|
| 8 18 28|
| 9 19 29|
----------

or

----------
|29 19  9|
|28 18  8|
|27 17  7|
|26 16  6|
|25 15  5|
----------
|24 14  4|
|23 13  3|
|22 12  2|
|21 11  1|
|20 10  0|
----------

Regards,
Newbie.


More information about the Digitalmars-d-learn mailing list