-
Notifications
You must be signed in to change notification settings - Fork 18k
slices: implement common utility functions for cardinality, transformation, filtering and venn operations #69467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: e110c89) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/613355. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/613355. |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/613355. |
Message from Shubham Sinha: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/613355. |
Message from Ian Lance Taylor: Patch Set 1: Hold+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/613355. |
This PR (HEAD: 99c0950) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/613355. Important tips:
|
This PR enhances the
slices
package by adding the essential functions around cardinality, transformation, filtering and venn operations which are as follows.These new functions added, are the common functions available in a lot of languages like Java, Python, etc in their standard packages, and are used very commonly in Go based applications, though implemented repeatedly everywhere.
Implementing these functions provides robustness and reliability around such use cases. Each of these functions handles for
nil
orempty
slices, instead of apanic
in such scenarios.