Skip to content

min_by/max_by on iterators #1722

Closed
Closed
@phimuemue

Description

@phimuemue

It seems that there is min, max (simple computation of min/max), min_by_key, max_by_key (min/max by comparing mapped values) but no min_by and max_by (min/max according to comparison function). However, e.g. on vectors or slices there is sort, sort_by_key and sort_by.

Wouldn't it be convenient to have min_by/max_by on iterators?

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions