-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support named slice types in API #9
Conversation
Change the API to support named slice types such as type mySlice []int This allows preserving the type in some functions. For example: type mySlice []int s1 := mySlice{1,2,3} s2 := Filter(s1, func (n int) bool { return n > 1 }) // The type of s2 is mySlice More details can be found in https://go.dev/blog/deconstructing-type-parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is missing a reference to Jira ticket:
-
Jira ticket ID should be appended to the PR title
-
Jira ticket URL should be added as a list item in the Related section (
- https://planitar.atlassian.net/browse/{ID}
)
Make sure you provide links to relevant context (Jira tasks, Github issues, other PRs) as follows:
Pull Request Test Coverage Report for Build 6647216795
💛 - Coveralls |
🥷 Code experts: no user but you matched threshold 10 korya has most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: To learn more about /:\ gitStream - Visit our Docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is missing a reference to Jira ticket:
-
Jira ticket ID should be appended to the PR title
-
Jira ticket URL should be added as a list item in the Related section (
- https://planitar.atlassian.net/browse/{ID}
)
Make sure you provide links to relevant context (Jira tasks, Github issues, other PRs) as follows:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is missing a reference to Jira ticket:
-
Jira ticket ID should be appended to the PR title
-
Jira ticket URL should be added as a list item in the Related section (
- https://planitar.atlassian.net/browse/{ID}
)
Make sure you provide links to relevant context (Jira tasks, Github issues, other PRs) as follows:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is missing a reference to Jira ticket:
-
Jira ticket ID should be appended to the PR title
-
Jira ticket URL should be added as a list item in the Related section (
- https://planitar.atlassian.net/browse/{ID}
)
Make sure you provide links to relevant context (Jira tasks, Github issues, other PRs) as follows:
Change the API to support named slice types such as
This allows preserving the type in some functions. For example:
More details can be found in https://go.dev/blog/deconstructing-type-parameters