(f func(K, V))
| 64 | } |
| 65 | |
| 66 | func (m *Map[K, V]) Range(f func(K, V)) { |
| 67 | m.Map.Range(func(k, v interface{}) bool { |
| 68 | f(k.(K), v.(V)) |
| 69 | return true |
| 70 | }) |
| 71 | } |
| 72 | |
| 73 | func (m *Map[K, V]) RangeSorted(f func(K, V), compare func(K, K) bool) { |
| 74 | // Collect keys and values |
no outgoing calls
no test coverage detected