set
set copied to clipboard
Include support to Generics
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.