Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize is_sorted for Range and RangeInclusive
The `Step` trait guarantees that `Range<impl Step>` yields items in sorted order. We can override the `Iterator::is_sorted` method based on this guarantee, as we already do for `Iterator::min` and `max`.
- Loading branch information