News for hackers. Stuff that matters.
Re:Functional programming in C++ by anthay on Tuesday September 27, 2016 @04:16PM (#12592751)
That's cool and I agree about the advantages you mention.

In your code \n must be a line separator rather than a line terminator. (Otherwise, if the last line is \n terminated, the function returns 0.)

Re:Functional programming in C++ by cousin_it on Tuesday September 27, 2016 @05:09PM (#12593238)
Yeah, fair point.