Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
18
func
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
Update
Method · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected