MCPcopy Create free account
hub / github.com/PacktPublishing/Learning-Go-Programming / apply

Function apply

ch05/funcs.go:129–133  ·  view source on GitHub ↗

apply uses a functional idiom to apply the provided function on each numer in nums

(nums []int, f func(int) int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.70

Calls 1

fFunction · 0.85

Tested by

no test coverage detected