fosskers / nonempty-collections

Correct-by-construction non-empty collections.
https://crates.io/crates/nonempty-collections
MIT License
15 stars 6 forks source link

add `min_by_key` and `max_by_key` #11

Closed rinde closed 9 months ago

rinde commented 9 months ago

Hello, I noticed that these two functions were missing (when comparing with Iterator in std). Let me know if you have any comments.

rinde commented 9 months ago

@fosskers Thanks for the feedback! I updated the code.

fosskers commented 9 months ago

Thanks again!