2 ms·
I was really disappointed when they removed support for argument unpacking. It was just so useful, especially in lambdas, for example Mdist = lambda (x1,y1
by blackbear_ 4y ago
I was really disappointed when they removed support for argument unpacking. It was just so useful, especially in lambdas, for example
Mdist = lambda (x1,y1),(x2,y2): abs(x1-x2)+abs(y1-y2)
p1,p2=(1,2),(3,4)
Mdist(p1,p2) # 4