Skip to content

Commit 1c22006

Browse files
author
Zheyuan Chen
authored
Merge pull request #12 from ron-wolf/patch-1
fix recipe: replace “reduce” with “sum”
2 parents 65a77a8 + b22dc96 commit 1c22006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

receipes/mapred.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
(
55
pipe(10) | range
66
| (map, lambda x: x ** 2)
7-
| (reduce, lambda acc, n: acc + n)
7+
| sum
88
| print
99
)

0 commit comments

Comments
 (0)