Skip to content
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

Include support to Generics #7

Open
rodrigo-brito opened this issue Mar 16, 2022 · 0 comments
Open

Include support to Generics #7

rodrigo-brito opened this issue Mar 16, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rodrigo-brito
Copy link
Contributor

rodrigo-brito commented Mar 16, 2022

We can support multiple primitive types in a single data structure with the new generic interface:

type Element interface {
    int | int64 | float | float64 | string
}

And replace the custom methods NewLinkedHashSetINT64 with NewLinkedHashSet that support multiple types.

@rodrigo-brito rodrigo-brito added the enhancement New feature or request label Mar 16, 2022
@VictorAssunc VictorAssunc self-assigned this Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants