Skip to content

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

@jimblandy

Description

@jimblandy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions