In a list of python tuple, I need to find the tuple with min sum.
for example,
a = [ (2, 6) , (1,3) , (0,2) ]
(0, 2)
should be returned because its sum is minimal.
I know how to do it by list comprehension and then find the smallest tuple sum.
minTuple = min([((x[0] + x[1]), (x[0], x[1])) for x in a ], key = lambda x : x[0] )
I would like to do it by map/lambda and list comprehension.
How to implement it efficiently?