mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 09:30:24 +08:00
8 lines
109 B
Python
8 lines
109 B
Python
|
# test closing over an argument
|
||
|
|
||
|
def f(x):
|
||
|
y = 2 * x
|
||
|
def g(z):
|
||
|
return x + y + z
|
||
|
return g
|