请教一个泛型

Ming_Y · · 2394 次点击
```go type Entry[K comparable, V comparable] struct { Key K Value V Next *Entry[K, V] } type HashMap[K comparable, V comparable] struct { Table []*Entry[K, V] } func (h *HashMap[K, V]) Add(key K, val V) bool { return false } ```
#1