forked from bodil/im-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ordered iterators over HAMT and `HashSet`. Given two sets with the same elements and the same hashers, the new iterators enumerate these sets in the same order. This is in contrast to existing iterators that do not guarantee consistent ordering for elements with the same hash values. Consistent ordering is achieved by sorting collision nodes on the fly during iteration. We use the new iterators to fix the implementation of `Ord`, `PartialOrd`, and `Hash` for `HashSet` (bodil#175).
- Loading branch information
Showing
3 changed files
with
305 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
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
Oops, something went wrong.