Help required on Array appender

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Sep 2 15:39:33 PDT 2017


On Saturday, 2 September 2017 at 21:11:17 UTC, Vino.B wrote:
> On Saturday, 2 September 2017 at 15:47:31 UTC, Vino.B wrote:
>> On Saturday, 2 September 2017 at 12:54:48 UTC, Nicholas Wilson 
>> wrote:
>>> [...]
>>
>> Hi,
>>
>> [...]
>
> Hi,
>
>   Was able to resolve the above issue, but again getting the 
> same for other lines such as below when i tried to add the 
> appender.
>
> auto CleanDirlst = appender([]);
> CleanDirlst ~= PVStore[1][i].to!string.split(",");
>
>
> Error: cannot implicitly convert expression appender([]) of 
> type Appender!(void[]) to string[].

You want `Appender!(string[])`


More information about the Digitalmars-d-learn mailing list