how to access record[0] of a csv row? Error: no [] operator overload for type CsvRecord!(int, cast(Malformed)1, string, dchar)
Paul Backus
snarwin at gmail.com
Mon Dec 7 13:46:04 UTC 2020
On Monday, 7 December 2020 at 06:18:33 UTC, mw wrote:
> Now, how to convert it to a native array:
>
> double[] row = record;
>
> Error: cannot implicitly convert expression record of type
> Tuple!(double, double, double, ..., double) to double[]
>
> (I know for tuple, we can do: double[] arr = [record];)
double[] row = [record.expand];
More information about the Digitalmars-d-learn
mailing list