3 lines
76 B
Python
3 lines
76 B
Python
|
|
funcs = map(lambda i: lambda: i * i, range(10))
|
||
|
|
print funcs[3]() # prints 9
|