Creating Struct for an output of a program.
Vino
vino.bheeman at hotmail.com
Tue Jan 9 14:27:04 UTC 2018
On Tuesday, 9 January 2018 at 12:50:04 UTC, Mengu wrote:
> On Tuesday, 9 January 2018 at 07:57:19 UTC, Vino wrote:
>> [...]
>
> if S2 consists of data for Layout struct, then you can simply
> do:
>
> auto S2 = S1.map!(a => Layout(a[0], a[1], a[2]));
>
> which will give you a range of Layout.
Hi,
We want the Layout struct to be created from the output of S1,
in the above the Layout is a example of the struct structure that
we needed.
From,
Vino.B
More information about the Digitalmars-d-learn
mailing list