We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7475b3a commit aabd2c1Copy full SHA for aabd2c1
README.md
@@ -489,19 +489,18 @@ creature = Creature()
489
Closure
490
-------
491
```python
492
-def multiply_closure(a):
+def get_multiplier(a):
493
def out(b):
494
return a * b
495
return out
496
```
497
498
499
->>> multiply_by_3 = multiply_closure(3)
+>>> multiply_by_3 = get_multiplier(3)
500
>>> multiply_by_3(10)
501
30
502
503
504
-
505
#### Or:
506
507
from functools import partial
0 commit comments