transversal sum

Jack Applegame via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 6 13:31:22 PST 2014


> void popFront() { foreach (ref r; rr) r.popFront(); }
I think it should be
void popFront() { foreach (ref r; rr.save) r.popFront(); }

> but I think OP wanted a ready-made phobos solution, w/o all the
> range boilerplate...
exactly.


More information about the Digitalmars-d-learn mailing list