Browse Source

Map

pull/27/head
Jure Šorn 5 years ago
parent
commit
00c3cc9039
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -581,7 +581,7 @@ for i in range(10):
``` ```
### Map, Filter, Reduce ### Map, Filter, Reduce
```python
```python3
from functools import reduce from functools import reduce
<iter> = map(lambda x: x + 1, range(10)) # (1, 2, ..., 10) <iter> = map(lambda x: x + 1, range(10)) # (1, 2, ..., 10)
<iter> = filter(lambda x: x > 5, range(10)) # (6, 7, 8, 9) <iter> = filter(lambda x: x > 5, range(10)) # (6, 7, 8, 9)

Loading…
Cancel
Save