Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Issue 16628 - std.algorithm.equal for known empty or infinite ranges
* If one of the ranges has `Range.empty == true`, we can define `equal` even when each `front` is not comparable. * If one range is infinite and the other defines `length`, return false. * If both are infinite, cause a compile-time error.
- Loading branch information
Showing
1 changed file
with
66 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters