https://issues.dlang.org/show_bug.cgi?id=16724
Issue ID: 16724 Summary: RandomCover.popFront is a no-op for the first call Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nob...@puremagic.com Reporter: dl...@supradigital.org I let the code speak for itself. import std.random; import std.range; import std.algorithm; void main () { auto range = iota(10); auto randy = range.randomCover; //randy.front // uncomment this and the assert works randy.popFront; assert(randy.array.length == range.length - 1); } --