On Wednesday, 23 November 2016 at 21:33:53 UTC, Jonathan M Davis wrote:
though I think that using the comma operator like that is deprecated now. Adding a helper function such as

auto getNext(R)(ref R range)
    if(isInputRange!R)
{
    range.popFront();
    return range.front;
}

would solve that problem.

It's the same behavior and suffers from the same problem of reuse of RNG output.

Reply via email to