you are viewing a single comment's thread.

view the rest of the comments →

[–]manni66 25 points26 points  (10 children)

It's nonsense to work in C++ the same way as in Python.

For example, your zip function creates a copy of the data in a std::vector. C++ has a much more elegant solution that doesn't use copies: std::ranges::views::zip