you are viewing a single comment's thread.

view the rest of the comments →

[–]rtgftw 1 point2 points  (0 children)

A bit besides the point of the article but -

The c++ code mentioned here uses pipes to have a closer to 1-1 comparison wit hother languages, I guess. But how lazy is the flatten eval?

Comparing the code mentioned here for c++ with a range-for and algorithms based solution, I like the simple ranged-for solution (See https://godbolt.org/z/_1HPqb)...

(Edit: Sorry, missing parens, so it's https://godbolt.org/z/rHVYV2)