MCPcopy Create free account
hub / github.com/Hardik180704/Go / nestedFunction

Function nestedFunction

Functions/main.go:16–18  ·  view source on GitHub ↗

Nested function example

(fn func(a int) int)

Source from the content-addressed store, hash-verified

14
15// Nested function example
16func nestedFunction(fn func(a int) int) {
17 fn(5)
18}
19
20func main() {
21 result := add(3, 4)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected