Skip to content

common: some tweaks for common helper functions#66

Merged
shoenig merged 1 commit intomainfrom
last-examples
May 16, 2023
Merged

common: some tweaks for common helper functions#66
shoenig merged 1 commit intomainfrom
last-examples

Conversation

@shoenig
Copy link
Copy Markdown
Contributor

@shoenig shoenig commented May 15, 2023

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.

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.
@shoenig
Copy link
Copy Markdown
Contributor Author

shoenig commented May 15, 2023

@zonewave I went back and forth on the naming of InsertSliceFunc again 😅

If things look good to you I think we can go ahead and cut a release with all the examples and your bug fixes.

@shoenig shoenig merged commit c9971c0 into main May 16, 2023
@shoenig shoenig deleted the last-examples branch April 15, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant