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

Open questions and to-dos #3

Open
6 tasks
mwpastore opened this issue May 14, 2018 · 0 comments
Open
6 tasks

Open questions and to-dos #3

mwpastore opened this issue May 14, 2018 · 0 comments

Comments

@mwpastore
Copy link
Owner

mwpastore commented May 14, 2018

Questions

  • Should Enumerable#piecewise return an Enumerator if no block is given, a la #select, etc.?
  • Should Enumerator#piecewise return a lazy enumerator if self is already lazy (eliminating the need for Enumerator::Lazy#piecewise)?
  • Should #piecewise be broken into two separate methods, a la #with_index and #each_with_index?
  • Should Enumerable#piecewise pass its args to #each or Enumerator#piecewise?

TODO

  • Add more/better examples
  • Test argument passing to Enumerable#each and Enumerator(::Lazy)#new
@mwpastore mwpastore changed the title Open questions Open questions and to-dos May 15, 2018
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