So I have this question, using a toy example:
a={1,"this"};
b={2,"that"};
result=Max[0,a[[1]],b[[1]]]
the result will be 2. However what I want to obtain is "that" (or at least "b"). How do I do this without making dozens of "If"s and conditionals??
a = {1, "this"}; b = {2, "that"}; #[[Ordering[#, -1, #[[1]] &]]] &@{a, b}
? $\endgroup$ – Dr. belisarius Dec 6 '13 at 20:43a = {1, "this"}; b = {2, "that"}; #[[Ordering[#, -1]]] &@{a, b}
$\endgroup$ – Dr. belisarius Dec 6 '13 at 21:25