3 ms·
`f` might be iterable / iterator with completely different semantics than doing by-line iteration. And that might even be a good idea.
by masklinn 7y ago
`f` might be iterable / iterator with completely different semantics than doing by-line iteration. And that might even be a good idea.
- thomasahle 7y agoIn this case it isn't though. And if it were, you could provide an `f.lines()` iterator. The code would be much nicer that way.