I have a vector like this:
let mut v = Vec::new();
v.push((1, 4));
v.push((2, 6));
v.push((3, 5));
How can I find the tuple with the largest second element? In this case it would be (2, 6).
The expression I'm looking for would look like this in python: max(v, key=lambda t: t[1])