Error: variable i cannot be read at compile time

Vino vino.bheeman at hotmail.com
Sat Jan 6 06:47:33 UTC 2018


On Friday, 5 January 2018 at 18:00:34 UTC, thedeemon wrote:
> On Friday, 5 January 2018 at 17:59:32 UTC, thedeemon wrote:
>>     Tuple!( staticMap!(Arr, ColumnTypes) ) res; // array of 
>> tuples
>
> Sorry, I meant tuple of arrays, of course.

Hi Deemon,

  Thank you very much, I tested your code, initially the code did 
not produce the expected output, and found an issue in the the 
key line of code as below, after updating the output was as 
expected. Can you please let me know how to change the array from 
standard array to container array.

auto ks = col.map!(v => col.countUntil(v)).array; // Your 
code(col.countUntil)
auto ks = col.map!(v => vals.countUntil(v)).array; // Changed 
code(vals.countUntil)

From,
Vino.B


More information about the Digitalmars-d-learn mailing list