MCPcopy Create free account
hub / github.com/PacktPublishing/Go-Design-Patterns / Sum

Function Sum

Chapter01/libraries/arithmetic/arithmetic.go:7–13  ·  view source on GitHub ↗

Sum will take as many arguments as you pass to it and return the sum of all of them

(args ...int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestSumFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSumFunction · 0.68