Skip to content

Extend k_smallest with largest and key options #586

Description

@orlp

Currently this crate only has k_smallest. Compare this to the offering for min/max (which are the same function, just limited to k = 1):

position_max
position_max_by
position_max_by_key
position_min
position_min_by
position_min_by_key

I think it would be nice if we extended k_smallest to:

k_smallest
k_smallest_by
k_smallest_by_key
k_largest
k_largest_by
k_largest_by_key

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions