mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-19 09:02:39 +08:00
iter
This commit is contained in:
@ -10,5 +10,11 @@ type Map[K constraints.Ordered, V any] interface {
|
||||
Clone() Map[K, V]
|
||||
Clear()
|
||||
Count() int
|
||||
Iter() <-chan *Entry[K, V]
|
||||
ForEach(f func(K, V))
|
||||
}
|
||||
|
||||
type Entry[K constraints.Ordered, V any] struct {
|
||||
Key K
|
||||
Value V
|
||||
}
|
||||
|
Reference in New Issue
Block a user