MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / make_adder

Function make_adder

data/python/01_functions.py:9–12  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

7 return n * factorial(n - 1)
8
9def make_adder(n):
10 def adder(x):
11 return x + n
12 return adder
13
14add5 = make_adder(5)
15print(add5(10))

Callers 1

01_functions.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected