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

repeat should return an enumerator when called without a block #27

Open
bfoz opened this issue Jun 30, 2014 · 1 comment
Open

repeat should return an enumerator when called without a block #27

bfoz opened this issue Jun 30, 2014 · 1 comment

Comments

@bfoz
Copy link
Owner

bfoz commented Jun 30, 2014

No description provided.

@bfoz
Copy link
Owner Author

bfoz commented Jul 20, 2014

Now it returns an standard Enumerator, which works well enough, but it could be better with an Enumerator-subclass (Repeater?). A custom subclass would be able to keep the syntax closer to the normal repeat command syntax (no need to use 'each', or to provide a block with non-zero arity).

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