MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / Map

Function Map

utils/operator.go:63–69  ·  view source on GitHub ↗
(list []T, mapper func(T) U)

Source from the content-addressed store, hash-verified

61}
62
63func Map[T any, U any](list []T, mapper func(T) U) []U {
64 result := make([]U, len(list))
65 for i, v := range list {
66 result[i] = mapper(v)
67 }
68 return result
69}

Callers 3

NewSignerFunction · 0.92
AddSignServerMethod · 0.92
GetSignServerMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected