We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 497ac5e commit a6ec9c3Copy full SHA for a6ec9c3
mymap.py
@@ -18,7 +18,7 @@ def mymap(func, *seqs):
18
19
20
def mymap(func, *seqs):
21
- return (func(args) for args in zip(*seqs))
+ return (func(*args) for args in zip(*seqs))
22
23
print(list(mymap(abs, [-2, -1, 0, 1, 2])))
24
print(list(mymap(pow, [1, 2], [2, 3, 4])))
0 commit comments