Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/egonelbre/exp
/ Add2
Method
Add2
bench/vector/mini/vector_test.go:20–26 ·
view source on GitHub ↗
(b Array)
Source
from the content-addressed store, hash-verified
18
return
r
19
}
20
func
(a Array) Add2(b Array) Array {
21
r := Array{}
22
for
i :=
range
b {
23
r[i] = a[i] + b[i]
24
}
25
return
r
26
}
27
func
(a Array) Add3(b Array) Array {
28
r := Array{}
29
r[0] = a[0] + b[0]
Callers
1
BenchmarkArray2
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected