Good name for f.byLine.map!(x => x.idup)?

Jakob Ovrum jakobovrum at gmail.com
Sun Mar 16 11:00:30 PDT 2014


On Sunday, 16 March 2014 at 17:58:45 UTC, bearophile wrote:
> In Python you write:
>
> for line in file("text.txt"):
>     ...
>
>
> So can't you make File iterable?
>
> foreach (line; "text.txt".File) {}
>
> Bye,
> bearophile

Is `line` a byte, a character, or a line?


More information about the Digitalmars-d mailing list