-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add
SequenceSet#count_with_duplicates
, etc
Adds three new SequenceSet methods for querying about "duplicates": * `#has_duplicates?`: Returns whether the ordered entries contain any duplicates. * `#count_duplicates`: Returns the count of duplicates in the ordered entries. * `#count_with_duplicates`: Returns the count of numbers in the ordered entries, including any repeated numbers. This is useful for adding guards to `CopyUIDData` and `UIDPlusData`, and for getting the size of `SequenceSet#each_ordered_number` (another PR).
- Loading branch information
Showing
2 changed files
with
79 additions
and
5 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
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