Passing a byLine as an argument to InputRange
Adam D. Ruppe
destructionator at gmail.com
Thu May 13 17:20:19 UTC 2021
On Thursday, 13 May 2021 at 17:07:51 UTC, Jeff wrote:
> I have a class where I'd like to supply it with an
> InputRange!string. Yet, for the life of me I can't seem to pass
> to it a File.byLine, even though the documentation states it's
> an InputRange.
byLine is not a range of string. It is a range of mutable char[].
I think byLineCopy yields strings though, try that. And if it
doesn't work mabye `InputRange!(char[])` or similar might work.
More information about the Digitalmars-d-learn
mailing list