Skip to content

Commit 7d91e7c

Browse files
committed
Map
1 parent ddfd08a commit 7d91e7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,9 @@ for i in range(10):
500500
### Map, Filter, Reduce
501501
```python
502502
from functools import reduce
503-
<iter> = map(lambda x: x + 1, range(10)) # (1, 2, ..., 10)
504-
<iter> = filter(lambda x: x > 5, range(10)) # (6, 7, ..., 9)
505-
<any_type> = reduce(lambda out, x: out + x, range(10)) # 45
503+
<iter> = map(lambda x: x + 1, range(10)) # (1, 2, ..., 10)
504+
<iter> = filter(lambda x: x > 5, range(10)) # (6, 7, ..., 9)
505+
<int> = reduce(lambda out, x: out + x, range(10)) # 45
506506
```
507507

508508
### Any, All

0 commit comments

Comments
 (0)