Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streamline Range.pick/roll in light of degenerate Ranges
Such as NaN..NaN or Inf..0 and stuff like that. Any Range that cannot determine its number of elements, will always return Nil for .pick/.roll or an empty Seq for .pick(N)/.roll(N). This makes the behaviour consistent with Ranges that do not contain any elements, such as 0..^0.
- Loading branch information
Showing
1 changed file
with
21 additions
and
13 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