Skip to content

The functions in core::iter::order should accept different iterator types #14278

Closed
@huonw

Description

@huonw

They're currently very restricted as they only work with a single iterator type for both arguments, so, e.g. let is_palindrome = order::equals(digits.iter(), digits.iter().rev()); doesn't work.

It should be easy to just add another Iterator<A> parameter for the second argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions