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

Function doUnary

ch05/funcs.go:116–118  ·  view source on GitHub ↗

doUnary uses first-order functionality of Go to implement a function that can apply unary operation to any given integer (i.e. sqr(3), log(1000), etc)

(f func(int) int, val int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 1

fFunction · 0.85

Tested by

no test coverage detected