Skip to content

Min/Max value? #59

@rljacobson

Description

@rljacobson

It would be nice to have min and max methods. I believe min can be implemented as:

  #[inline(always)]
  pub fn min_value(&self) -> Option<usize> {
    self.0.iter().next()
  }

It's not clear how to efficiently implement max.

If the iterator implemented DoubleEndedIterator, then max could be implemented the same way.

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