Skip to content

Commit 8dcec4e

Browse files
committed
Bla
1 parent 8496d65 commit 8dcec4e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,9 @@ Closure
490490
-------
491491
```python
492492
def multiply_closure(a):
493-
def wrapped(b):
493+
def out(b):
494494
return a * b
495-
return wrapped
495+
return out
496496
```
497497

498498
```python
@@ -508,6 +508,12 @@ from functools import partial
508508
partial(<function>, <arg_1> [, <arg_2>, ...])
509509
```
510510

511+
```python
512+
>>> multiply_by_3 = partial(lambda a, b: a*b, 3)
513+
>>> multiply_by_3(10)
514+
30
515+
```
516+
511517

512518
Decorator
513519
---------

0 commit comments

Comments
 (0)