同様のタイプのタプルを比較する関数を作成しようとしています。
def compareTuples(tuple1: (String, String, Int), tuple2: (String, String, Int)): (String, String, Int) = {
// if tuple1.Int < tuple2.Int return tuple1 else tuple2.
}
各タプルの 3 番目の要素または int にアクセスするにはどうすればよいですか?
ありがとう