Skip to content

Commit 37f37f4

Browse files
authored
Merge pull request progrmoiz#10 from wwj718/patch-1
fix bug
2 parents 497ac5e + a6ec9c3 commit 37f37f4

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)