MCPcopy Index your code
hub / github.com/coder/coder / Map

Function Map

coderd/util/maps/maps.go:9–15  ·  view source on GitHub ↗
(params map[K]F, convert func(F) T)

Source from the content-addressed store, hash-verified

7)
8
9func Map[K comparable, F any, T any](params map[K]F, convert func(F) T) map[K]T {
10 into := make(map[K]T)
11 for k, item := range params {
12 into[k] = convert(item)
13 }
14 return into
15}
16
17// Subset returns true if all the keys of a are present
18// in b and have the same values.

Callers 1

collectNetworkStatsFunction · 0.92

Calls 1

convertFunction · 0.85

Tested by

no test coverage detected