Skip to content

Commit b22dc96

Browse files
authored
replace “reduce +” with “sum”
1 parent 65a77a8 commit b22dc96

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)