I got a multi-argument function. I simplified the function to map, and here's my function to test with:
def _dist(I,J,X,Y):
return abs(I-X)+abs(J-Y)
And in some case, I just want to hold X,Y as constant and iterate I,J over u_x and u_y, respectively. I write down something below (while SyntaxError raised)
new=map(_dist(,,cur.x(),cur.y()),u_x,u_y)
where the cur.x() and cur.y() are constant. Anyway to do it with map()?