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

Function Map

lib/sliceutil/sliceutil.go:18–24  ·  view source on GitHub ↗
(s S, f func(E) R)

Source from the content-addressed store, hash-verified

16}
17
18func Map[E, R any, S ~[]E](s S, f func(E) R) []R {
19 r := make([]R, len(s))
20 for i, v := range s {
21 r[i] = f(v)
22 }
23 return r
24}

Callers 1

UpdateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected