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

product with repeat #958

Open
adamnemecek opened this issue Jun 15, 2024 · 1 comment
Open

product with repeat #958

adamnemecek opened this issue Jun 15, 2024 · 1 comment

Comments

@adamnemecek
Copy link

Hello,
product in Python itertools can take an option repeat. It might be a good idea to add an implementation of this to itertools as well. This one seems good https://stackoverflow.com/questions/44139493/in-rust-what-is-the-proper-way-to-replicate-pythons-repeat-parameter-in-iter

@Philippe-Cholet
Copy link
Member

If it's about the iproduct! macro, there is #264 which is a bit abondonned at the moment and if that's without macro there is itertools::repeat_n(it, repeat).multi_cartesian_product().

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

2 participants