On Sunday, 11 June 2017 at 08:33:16 UTC, Cym13 wrote:
On Sunday, 11 June 2017 at 05:36:08 UTC, helxi wrote:
[...]

Ok, if I read you right you are writing to stdin and want first to print the first args[1] lines, then to do other things with the other lines of stdin.

[...]

Meh... I just noticed my first and second propositions are essentially the same, the main difference is that the range stdin.ByLineCopy is stored so you don't create a new one when reading from stdin again. This is what causes the loss of a line.

Reply via email to