-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Python's builtin map function has the call signature map(function, iterable...), meaning multiple iterables can be passed as arguments to a function with multiple arguments. For instance, the following is valid:
def f(a, b):
return (a,b)
print map(f, [0,1], [2,3])
Output: [(0,2), (1,3)]
See the documentation for details: http://docs.python.org/library/functions.html#map
parallel_map, on the other hand, only takes one iterable. Is it possible to extend the functionality so that the call signature is compatible with map?