Open adamnemecek opened 3 weeks ago
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
repeat
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().
iproduct!
itertools::repeat_n(it, repeat).multi_cartesian_product()
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