[Issue 17952] std.range.transposed save is invalid

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 30 17:54:13 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17952

--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> ---
To ensure this test case is checking the right issue, change the third line to:

assert(y.equal([[1,4],[2,5],[3,6]]));

And get rid of the y.popFront.

Clearly, we should be able to iterate y without iterating x. But that's not
what happens (consuming any saved range consumes them all).

--


More information about the Digitalmars-d-bugs mailing list