2 ms·
I hate this. I really wish generics were not adding to function signature, but instead to types themselves. func New(compare func(generic.K, generic.V) int)
by baby 7y ago
I hate this. I really wish generics were not adding to function signature, but instead to types themselves.
func New(compare func(generic.K, generic.V) int) *Map(generic.K, generic.V)