I am trying to write a function to compare tuples of similar type.
def compareTuples(tuple1: (String, String, Int), tuple2: (String, String, Int)): (String, String, Int) = {
// if tuple1.Int < tuple2.Int return tuple1 else tuple2.
}
How do I access the third element or the int in each tuple?
Thanks