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

Add cycle_n iterator #205

Open
ghost opened this issue Jun 22, 2017 · 2 comments
Open

Add cycle_n iterator #205

ghost opened this issue Jun 22, 2017 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 22, 2017

Same as cycle but with finite number of repeats.

@bluss
Copy link
Member

bluss commented Jul 30, 2017

Can we say that we already cover this with itertools::repeat_n(iter, n).flatten()?

@bluss bluss added the question label Aug 25, 2017
@NooneAtAll3
Copy link

Microbenchmarks say dedicated function will get optimized better.

And, personally, I would prefer being able to do this with only dot-chaining

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

No branches or pull requests

2 participants