-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: some tweaks for common helper functions
This PR renames TransformUnion to InsertSetFunc, and TransformSlice to SliceFunc which should be a bit more obvious to understand. Also, the "Union" methods on the set types are ones that return a newly created set, and so we are also now more consistent with how those are named. Also adds a boolean return value to InsertSetFunc, which like the insertion methods on the set types returns true if the set was modified as a result of the operation. And adds test cases around being modified or not modified. Cleans up a few doc strings.
- Loading branch information
Showing
2 changed files
with
96 additions
and
32 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