Hacker News new | past | comments | ask | show | jobs | submit login

Although an implementation based on streaming combinators (=no intermediate allocations) clearly is faster, the interface you provided definitely corresponds to the way I want to program.

You might want to have a look to std.algorithm from Phobos (the D programming language standard library) ; it's full of such utilities : http://dlang.org/phobos/std_algorithm.html

That's a shame there's nothing similar in the C++ standard library.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: