stdio.lines doesn't have popFront, but works with foreach
Andrew Klaassen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Dec 11 13:40:50 PST 2014
On Thursday, 11 December 2014 at 20:37:09 UTC, Kapps wrote:
> Ranges are one way of allowing foreach. The other is through
> the use of opApply, which is what std.stdio.lines does.
>
> http://dlang.org/statement.html#ForeachStatement
Ah, so I just needed to keep reading down a few lines in the
foreach docs. Thanks!
Andrew
More information about the Digitalmars-d-learn
mailing list