Values returns a slice of the values in the map.
()
| 350 | |
| 351 | // Values returns a slice of the values in the map. |
| 352 | func (m *MapOf[K, V]) Values() []V { |
| 353 | var values []V |
| 354 | m.Range(func(key K, value V) bool { |
| 355 | values = append(values, value) |
| 356 | return true |
| 357 | }) |
| 358 | return values |
| 359 | } |
| 360 | |
| 361 | func (m *MapOf[K, V]) Count() int { |
| 362 | return len(m.dirty) |
no test coverage detected