Repeat and chunks

Dorian Haglund via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Oct 25 00:35:10 PDT 2016


On Monday, 24 October 2016 at 16:09:44 UTC, ag0aep6g wrote:
> On 10/24/2016 04:25 PM, Dorian Haglund wrote:
>> The following code crashes with DMD64 D Compiler v2.071.2:
>>
>> import std.algorithm;
>> import std.stdio;
>> import std.range;
>>
>> int main()
>> {
>>   repeat(8, 10).chunks(3).writeln();
>>
>>   return 0;
>> }
>
> Looks like a bug. Doesn't happen with 2.072.0-b2, so it has 
> apparently already been fixed.

Ok! I'll wait for the next release then. Thanks.


More information about the Digitalmars-d-learn mailing list