phobos/changelog/std-range-package-Transposed-deprecate-save.dd
Sebastian Wilzbach 02e9db4c8b Remove trailing whitespace in transposed changelog entry
dlang.org/pr/1921 is failing due to the trailing whitespace in the
changelog entry.
2017-11-04 03:54:39 +01:00

14 lines
459 B
Text

Deprecate `save` for `std.range.package.Transposed`
Transposed is incorrectly marked as a forward range. Its `popFront` primitive
cannot be used without affecting any other copies made with `save`. `save` will be
removed from Transposed in November 2018.
https://issues.dlang.org/show_bug.cgi?id=17952
-----
auto x = [[1,2,3],[4,5,6]].transposed;
auto y = x.save;
y.popFront;
assert(x.equal([[1,4],[2,5],[3,6]])); // FAILS, x is really [[2,5],[3,6]]
-----