MCPcopy Index your code
hub / github.com/riverqueue/river / Values

Function Values

rivershared/util/maputil/map_util.go:17–25  ·  view source on GitHub ↗

Values creates an array of the map values.

(in map[K]V)

Source from the content-addressed store, hash-verified

15
16// Values creates an array of the map values.
17func Values[K comparable, V any](in map[K]V) []V {
18 result := make([]V, 0, len(in))
19
20 for _, v := range in {
21 result = append(result, v)
22 }
23
24 return result
25}

Callers 6

StartMethod · 0.92
StartMethod · 0.92
AllVersionsMethod · 0.92
migrateDownMethod · 0.92
migrateUpMethod · 0.92
TestValuesFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestValuesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…