Repeat and chunks
ag0aep6g via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Oct 24 09:09:44 PDT 2016
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.
More information about the Digitalmars-d-learn
mailing list