Browse Source

Reduce

pull/3/head
Jure Šorn 6 years ago
parent
commit
7b7bc0e390
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -278,7 +278,7 @@ for i in range(10):
```python
map(lambda x: x+1, range(10)) # [1, 2, ..., 10]
filter(lambda x: x>5, range(10)) # [6, 7, ..., 9]
functools.reduce(combining_function, list_of_inputs)
functools.reduce(lambda sum, x: sum+x, range(10)) # 45
```
### Any, All

Loading…
Cancel
Save