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

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Mar 19 18:38:40 PDT 2014


On 3/19/14, 4:53 PM, Meta wrote:
> On Wednesday, 19 March 2014 at 22:30:55 UTC, Peter Alexander wrote:
>> On Sunday, 16 March 2014 at 16:58:36 UTC, Andrei Alexandrescu wrote:
>>> A classic idiom for reading lines and keeping them is f.byLine.map!(x
>>> => x.idup) to get strings instead of the buffer etc.
>>
>> f.readLines
>
> What about a simpler f.iter() or f.lineIter()?

Ideally it would be a variation of byLine. -- Andrei


More information about the Digitalmars-d mailing list