Andrei Alexandrescu:
A classic idiom for reading lines and keeping them is f.byLine.map!(x => x.idup) to get strings instead of the buffer etc.
Once dup/idup become free functions in object you can also write: f.byLine.map!idup Bye, bearophile
Andrei Alexandrescu:
A classic idiom for reading lines and keeping them is f.byLine.map!(x => x.idup) to get strings instead of the buffer etc.
Once dup/idup become free functions in object you can also write: f.byLine.map!idup Bye, bearophile