We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cycle
itertools.cycle
Approximate implementation:
def cycle(iterable, times=None): iterable = reiterable(iterable) i = 0 while times is None or i < times: yield from iterable i += 1
Should also support enhanced built-in methods (e.g. __len__, count, etc.). Should have numpy support for finite times.
__len__
count
numpy
times
The text was updated successfully, but these errors were encountered:
repeat
itertools.repeat
Add cycle
d321aea
Resolves #690.
Add numpy cycle support
0072c6e
f2686ce
3dcb9a0
No branches or pull requests
Approximate implementation:
Should also support enhanced built-in methods (e.g.
__len__
,count
, etc.). Should havenumpy
support for finitetimes
.The text was updated successfully, but these errors were encountered: