ranges.chunks and map! does not work
Andre Pany
andre at s-e-a-p.de
Thu Jul 5 16:25:05 UTC 2018
On Thursday, 5 July 2018 at 12:00:03 UTC, vit wrote:
> On Thursday, 5 July 2018 at 09:47:32 UTC, Andre Pany wrote:
>> [...]
>
> roundRobin doesn't return RandomAccessRange => chunks doesn't
> return range of RandomAccessRange => Error: no [] operator
> overload
>
> try this:
>
> string content = roundRobin(timestamps, temperatures,
> pressures)
> .array
> .chunks(3)
> //.map!(c => c.array)
> .map!(c => "%.10g,%.10g,%.10g".format(c[0],c[1],c[2]))
> .join("\n");
Thanks a lot for all the answers.
Kind regards
Andre
More information about the Digitalmars-d-learn
mailing list