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 8496d65 commit 8dcec4eCopy full SHA for 8dcec4e
README.md
@@ -490,9 +490,9 @@ Closure
490
-------
491
```python
492
def multiply_closure(a):
493
- def wrapped(b):
+ def out(b):
494
return a * b
495
- return wrapped
+ return out
496
```
497
498
@@ -508,6 +508,12 @@ from functools import partial
508
partial(<function>, <arg_1> [, <arg_2>, ...])
509
510
511
+```python
512
+>>> multiply_by_3 = partial(lambda a, b: a*b, 3)
513
+>>> multiply_by_3(10)
514
+30
515
+```
516
+
517
518
Decorator
519
---------
0 commit comments