diff options
Diffstat (limited to 'map.go')
-rw-r--r-- | map.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,8 @@ +package main + +type Map[K comparable, V interface{}] map[K]V + +func (m Map[K, V]) Contain(key K) bool { + _, ok := m[key] + return ok +} |