On Tuesday, 9 January 2018 at 19:05:48 UTC, thedeemon wrote:
On Tuesday, 9 January 2018 at 18:09:58 UTC, Vino wrote:
It is possible to store struct in a array ans use the same
in csvReader
Sure, you can just pass the type of your struct to csvReader:
Array!T1 T1s;
reader(fName, T1s); // pa
On Tuesday, 9 January 2018 at 18:09:58 UTC, Vino wrote:
It is possible to store struct in a array ans use the same
in csvReader
Sure, you can just pass the type of your struct to csvReader:
Array!T1 T1s;
reader(fName, T1s); // pass the array Type as a function
parameter
First you write a
On Tuesday, 9 January 2018 at 17:41:10 UTC, Vino wrote:
On Tuesday, 9 January 2018 at 17:00:05 UTC, thedeemon wrote:
On Tuesday, 9 January 2018 at 13:49:41 UTC, Vino wrote:
Hi All,
It is possible to store struct in a array ans use the same
in csvReader
Sure, you can just pass the type of y
On Tuesday, 9 January 2018 at 17:00:05 UTC, thedeemon wrote:
On Tuesday, 9 January 2018 at 13:49:41 UTC, Vino wrote:
Hi All,
It is possible to store struct in a array ans use the same in
csvReader
Sure, you can just pass the type of your struct to csvReader:
struct Layout { string name; in
On Tuesday, 9 January 2018 at 13:49:41 UTC, Vino wrote:
Hi All,
It is possible to store struct in a array ans use the same in
csvReader
Sure, you can just pass the type of your struct to csvReader:
struct Layout { string name; int value; double other; }
auto readArrayOfStructs(string fname
On Tuesday, 9 January 2018 at 13:49:41 UTC, Vino wrote:
Hi All,
It is possible to store struct in a array ans use the same in
csvReader e.g.
import std.stdio;
import std.container.array;
void main () {
Array!string a;
struct Layout { string name; int value; double other; }
a.insert(Layout)
Hi All,
It is possible to store struct in a array ans use the same in
csvReader e.g.
import std.stdio;
import std.container.array;
void main () {
Array!string a;
struct Layout { string name; int value; double other; }
a.insert(Layout);
auto record =
uFile.byLineCopy().joiner("\n").csvRead