Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request zip/zip_longest functionality #71

Open
ghost opened this issue Jan 25, 2020 · 2 comments
Open

request zip/zip_longest functionality #71

ghost opened this issue Jan 25, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 25, 2020

Hi, good to see more Python like functions in c++.

Is it possible to have zip and zip_longest use a single iterator over an arbitrary number of containers that are only known at runtime? Just like in Python when unpacking a list of lists? It would really be helpful for me.

@ryanhaining
Copy link
Owner

I've been thinking about how to go about this and can't come up with a great way to deal with references other than std::reference_wrapper. That's likely what I'll end up using.

@ghost
Copy link
Author

ghost commented Feb 21, 2020

Nice. But euh, why do you hesitate using such an approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant