Skip to content

Commit e672f42

Browse files
author
Zheyuan Chen
authored
Update README.md
1 parent c9a5960 commit e672f42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,8 @@ list((stream() << [1, 1] << (lambda x, y: x + y)) /take/ 10)
211211
In math, `(f * g) (x) = f(g(x))`. This is called function composition.
212212

213213
``` python
214-
# this transfer a map object to list
215-
lmap = compose(list, map)
216214
# lmap equivalent to `list(map(...))`
215+
lmap = compose(list, map)
217216
lmap(lambda x: x ** 2, range(10))
218217
```
219218

0 commit comments

Comments
 (0)