This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
main
RosettaCodeData
/
Task
/
Closures-Value-capture
/
Python
/
closures-value-capture-6.py
3 lines
76 B
Python
Raw
Permalink
Blame
History
funcs
=
map
(
lambda
i
:
lambda
:
i
*
i
,
range
(
10
)
)
print
funcs
[
3
]
(
)
# prints 9
Reference in New Issue
View Git Blame
Copy Permalink