-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fast inclusion operation on hashmaps and hashsets (#282)
* add fast subset operation * add explanation for subkey offset in lookupCont * rename subset operation for compatibility with containers API * update docs: union is not a least upper bound operator for `isSubmapOf`. * explain runtime complexity of isSubmapOf. * isSubmapOfBy: move `Empty` case to top * isSubmapOfBy: fix comments * isSubsetOf: add example * isSubmapOf: quickcheck test for compatibility with containers * isSubmapOf: use arbitrary instance of HashMap * isSubmapOf: fix comments again * isSubmapOf: update doc for runtime complexity * remove mathematical symbols from user doc * add difference subset quickcheck property * add `all` function for arrays * fix comments in `isSubmapOf` * fix wrong runtime complexity of set inclusion * delete unused property * fix error in `isSubmapOf` based on wrong assumption * add benchmarks * change a few recursive `isSubmap` cases to `False` * add strictness annotations * make isSubmapOf and isSubmapOfBy INLINABLE
- Loading branch information
1 parent
f508e18
commit 352591a
Showing
9 changed files
with
282 additions
and
29 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,7 @@ module Data.HashSet | |
, member | ||
, insert | ||
, delete | ||
, isSubsetOf | ||
|
||
-- * Transformations | ||
, map | ||
|
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.