pop & popFront combined

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 1 07:03:37 PDT 2014


On Saturday, 1 November 2014 at 13:38:22 UTC, Marc Schütz wrote:
> If you want to avoid the temporary variable, you could write:
>
>     scope(success) r.popFront;
>     return r.moveFront;

Nice solution anyhow! Thanks!


More information about the Digitalmars-d-learn mailing list