MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / Values

Method Values

pkg/generic_sync/map.go:352–359  ·  view source on GitHub ↗

Values returns a slice of the values in the map.

()

Source from the content-addressed store, hash-verified

350
351// Values returns a slice of the values in the map.
352func (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
361func (m *MapOf[K, V]) Count() int {
362 return len(m.dirty)

Callers 4

step1_password_loginMethod · 0.80
GetAllMethod · 0.80
GetAllStoragesFunction · 0.80

Calls 1

RangeMethod · 0.95

Tested by

no test coverage detected