Collapsing n-dimensional array to linear (1 dimensional)
abad via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jan 22 04:07:11 PST 2016
Let's say I have an array like this:
int[][][] array;
And I want to generate a linear int[] based on its data. Is there
a standard library method for achieving this, or must I iterate
over the array manually?
What I'm thinking of is something like this:
int[] onedim = std.array.collapse(array);
More information about the Digitalmars-d-learn
mailing list