Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ebonnal committed Jul 27, 2023
1 parent 87ca797 commit eefef7e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
```python
from kioss import Pipe

words_count: int = (
Pipe(open("...", "r"))
.map(str.split)
.map(iter)
.flatten()
.map(lambda _: 1)
.reduce(int.__add__, initial=0)
)
with open("...", "r") as text_file:
words_count: int = (
Pipe(text_file)
.map(str.split)
.map(iter)
.flatten()
.map(lambda _: 1)
.reduce(int.__add__, initial=0)
)
```

## Features
Expand Down

0 comments on commit eefef7e

Please sign in to comment.