Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/compiler-explorer/compiler-explorer
/ MaxArray
Function
MaxArray
examples/go/Max_array.go:3–9 ·
view source on GitHub ↗
(x, y []float64)
Source
from the content-addressed store, hash-verified
1
package
main
2
3
func
MaxArray(x, y []float64) {
4
for
i, c :=
range
x {
5
if
y[i] > c {
6
x[i] = y[i]
7
}
8
}
9
}
10
11
func
main() {}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected