Skip to content

Commit a6ec9c3

Browse files
authored
fix bug
1 parent 497ac5e commit a6ec9c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mymap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def mymap(func, *seqs):
1818

1919

2020
def mymap(func, *seqs):
21-
return (func(args) for args in zip(*seqs))
21+
return (func(*args) for args in zip(*seqs))
2222

2323
print(list(mymap(abs, [-2, -1, 0, 1, 2])))
2424
print(list(mymap(pow, [1, 2], [2, 3, 4])))

0 commit comments

Comments
 (0)