1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 16:42:41 +08:00
Files
go-mixed/collections/generics/map.go
2022-03-27 10:23:14 +08:00

12 lines
184 B
Go

package generics
type Map[K comparable, V any] interface {
Set(key K, value V)
Get(key K) (V, bool)
Delete(key K)
ForEach(f func(K, V))
Clone() Map[K, V]
Clear()
Count() int
}