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

FallibleIterator is missing many methods from the modern std::Iterator #15

Open
15 of 17 tasks
jimblandy opened this issue Sep 13, 2018 · 1 comment
Open
15 of 17 tasks

Comments

@jimblandy
Copy link
Contributor

jimblandy commented Sep 13, 2018

Since FallibleIterator was created, std::Iterator has continued to evolve and grow interesting features. It would FallibleIterator easier to use if people could assume it has all the features they're used to, just in a failure-friendly form.

Missing methods, as of a skim through the docs today:

  • step_by
  • for_each
  • skip_while
  • take_while
  • skip
  • scan
  • flat_map
  • flatten
  • inspect
  • partition
  • find_map
  • max_by
  • min_by
  • unzip
  • cycle
  • sum
  • product

These probably aren't necessary, since they're just providing what FallibleIterator is designed to provide anyway.

  • try_fold
  • try_for_each
@sfackler
Copy link
Owner

Yep, we should mirror what the standard library offers.

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

2 participants